Prerequisites:
Install
VS Code.
NodeJs.
Here are a few steps to follow:
Create a new folder and open it in VS Code.
Open the terminal and navigate to the folder you created recently.
Run these commands:
npm init -ynpm i express4. Create a file named as Server.js .
5. Inside Server.js write the below code:


Express js Server Code
6. Run server.js using the terminal:
node server.jsResult:
Server started at Port 3000