Guide to Project
Use the package yarn to create a NodeJs project.
yarn init -y
Express includes routes bases itself in Operating System
yarn add express
Automatically updates the server when it detects any code changes
yarn add nodemon -D
yarn nodemon src/index.js
Generates a unique id
yarn add uuidv4
{
"name": "backend",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
}
{
"name": "backend",
"version": "1.0.0",
"main": "src/index.js",
"license": "MIT",
"scripts": {
"dev": "nodemon"
},
}
yarn dev