Handling File Uploads With NestJS and MySQL

Many developers despise dealing with file uploads. This can be attributed to a lack of knowledge about the best approach to take or difficulties determining how to configure their NestJS application to handle file uploads. Many people may want to save their files directly to a MySQL database, or save image names and have the … Read more

How to Build a Full-stack App

In this article, we’ll learn how to build a Full-stack application using Next.js, Prisma, Postgres, and Fastify. We will build an attendance management demo application that manages employees’ attendance. The flow of the app is simple: an administrative user logs in, creates an attendance sheet for the day, then every employee signs in and out … Read more

javascript – vanilla tilt js why it doesnt work in browser,but work in stackovervlow snippet?

var VanillaTilt=function(){“use strict”;class t{constructor(e,i={}){if(!(e instanceof Node))throw”Can’t initialize VanillaTilt because “+e+” is not a Node.”;this.width=null,this.height=null,this.clientWidth=null,this.clientHeight=null,this.left=null,this.top=null,this.gammazero=null,this.betazero=null,this.lastgammazero=null,this.lastbetazero=null,this.transitionTimeout=null,this.updateCall=null,this.event=null,this.updateBind=this.update.bind(this),this.resetBind=this.reset.bind(this),this.element=e,this.settings=this.extendSettings(i),this.reverse=this.settings.reverse?-1:1,this.glare=t.isSettingTrue(this.settings.glare),this.glarePrerender=t.isSettingTrue(this.settings[“glare-prerender”]),this.fullPageListening=t.isSettingTrue(this.settings[“full-page-listening”]),this.gyroscope=t.isSettingTrue(this.settings.gyroscope),this.gyroscopeSamples=this.settings.gyroscopeSamples,this.elementListener=this.getElementListener(),this.glare&&this.prepareGlare(),this.fullPageListening&&this.updateClientSize(),this.addEventListeners(),this.reset(),this.updateInitialPosition()}static isSettingTrue <script src=”https://cdnjs.cloudflare.com/ajax/libs/d3/5.7.0/d3.min.js”></script> <script src=”https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.5/angular.min.js”></script> <script src=”https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js”></script> <!doctype html> <html lang=”en”> <head> <meta charset=”utf-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <title>coba tilt.js</title> <link href=”https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css” rel=”stylesheet” integrity=”sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor” crossorigin=”anonymous”> <style> *{ margin: 0; padding: 0; } .kotak{ width: 200px; height: 200px; background-color: aqua; margin: 50px … Read more

Build a Chat App With Nestjs and PostgreSQL

The code for this tutorial is available on my GitHub repository. Feel free to clone it as you follow the steps. Let’s begin! What Is NestJS? NestJS is a Node.js framework for creating fast, testable, scalable, loosely coupled server-side applications that use TypeScript. It takes advantage of powerful HTTP server frameworks such as Express or … Read more