Step 1 (This is the step one)
npm init
Step 2 (This is the step 2 install general dependencies)
npm i nodemon mongoose dotenv bcrypt jsonwebtoken cookie-parser express
Step 3
Make following folders
1) controllers
2) models
3) routes
4) utils
5) .env
6) server.js and then make change in package json file => "scripts": {
"start": "nodemon index.js"
},
Explore this=>https://github.com/safak/youtube2022/tree/mern-booking/api
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter