Node

Node Code Snippets

18 Important HTTP Status Codes You Must Know đŸ”„

– 200 OK: Request succeeded– 201 Created: Resource created– 202 Accepted: Accepted request– 204 No Content: Accepted request– 301 Moved Permanently: Accepted request– 302 Found: Temporarily moved– 304 Not Modified: Not modified– 400 Bad Request: Bad request error– 401 Unauthorized: Needs authentication– 403 Forbidden: Access Forbidden– 404 Not Found: Resource Not Found– 405 Not Allowed: […]

View code ->

Prisma config with Mongodb

1-Install the Prisma CLI: 2-Initialize a Prisma project: 3-Set the DATABASE_URL in the .env file:Open the .env file and set the DATABASE_URL environment variable to the connection string for your MongoDB database. 4-Generate the Prisma Client:

View code ->

essential Npm package for developers

Drag and drop image upload Use of the Npm package Name of NPM Package Install Drag and drop image upload react-dropzone npm i react-dropzone File upload to server multer npm i multer Express.js is one of the simplest and fastest Node.js web frameworks.  Express npm i express Async js provides functions like ‘map’, ‘filter’, ‘reduce’, ‘parallel’, ‘series’, ‘waterfall’, and […]

View code ->
top
× How can I help you?