Setup an express Project
-
npm init - initialse a package.json file
-
create index.js file
-
npm i express - install express in our project
-
Import express in index.js file
-
Create an app using the express package
-
writing a basic route using app
-
Make the app to listen a specific port
-
Install nodemon to automate the restart of server when file changes
-
npm i -g nodemon
-
run command nodemon on cmd terminal not powershell
-
Add type as module in pacakage.json to use ES6 import module