Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 46

Express Js Application Using

VS Code Editor
Installation Steps:
• Install Node Js
• Install npm package
• Then install Vs Code editor
• Install Browser
Select this extension to install browser and other
software for vs code
Search for browser and select open in browser
and install
Install Microsoft edge browser
Open Folder from files menu
Create a new folder in any location
Select that folder
Select new terminal
Type the command
npm init –y

It will create package.json file


npm install express

Install express Js
Create newfolder name- views
Inside views folder create index.html
Inside views folder create style.css
npm install body-parser –save

If you want to read HTTP POST data , you have to use the “body-parser” node module.

npm install mongoose --save


Mongoose is an object document modeling (ODM) layer which sits on the top of
Node’s MongoDB driver.
Type the command in terminal
Install mongoose for db connectivity
Start the mongod server from command line
Open mongodb compass
Click to connect button
Create a new Database
Create a new file server.js
Create a new file signup_success.html
Execute your project using this command
Use Sendfile method & Modify the links views/index.html
Modify the links views/index.html
Execute the code
Execute once more

You might also like