05_Create_Web_Application_Using_Expressjs_Node_Project_Approach
05_Create_Web_Application_Using_Expressjs_Node_Project_Approach
Prerequisites: None
Steps to be followed:
mkdir expressExample
1.2 Go to the newly created directory by running the given command
cd expressExample
npm init -y
2.2 This creates a package.json file in the backend
2.3 Open the package.json file and add the below content
"dependencies": {
"express": "^4.17.1"
3.1 Run the below command to create a new file with the name express.js file
nano express.js
3.2 Paste the below content into the file
response.send("Hello World");
})
node express.js
4.2 Go to the given URL to verify if the app is working
http://localhost:5000