- Init your node.js project
mkdir <Folder Name>
cd <Folder Name>
npm init -y
- Install package that need on your project (if having more you can install it later)
npm i express dotenv nodemon
- Setting up Startup Script
{
...,
"scripts": {
"start": "node app.js",
"dev": "npx nodemon app.js"
},
...
}
- Create file name
app.js
in root of your project