directory.png

<aside>

Task

</aside>


Installation & Setup

Create a new project for Node.js Project

npm init -y

Install an Express

npm install express

Express Hello World

Create a new file

const express = require('express')
const app = express()
const port = 3000

app.get('/', (req, res) => {
	res.send('Hello World!')
})

app.listen(port, () => {
	console.log(`Forbear app listening on port ${port}`)
})

Run the code.

node app.js

Open the browser and search localhost:3000