Express Js Hello World Simple Boilerplate Server
Express Js Hello World Simple Boilerplate Server
by on on react

Express Js Hello World Simple Boilerplate Server

Express Js Simple Server Boilerplate for Hello World Website


Express JS is a framework used by node js to build powerful Fullstack applications. Here is how to setup for the most simplest and most easy Express js app.

Step 1:

Install node js  and run the below command

Step 2:

npm install express

Step 3:

create a file called app.js and paste these lines of code inside of it.

const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => {
  res.send('Hello World!')
})
app.listen(port, () => {
  console.log(`Example app listening at http://localhost:${port}`)
})

finally run the below command to start your app.

Here is a Fullstack mern stack application built using node express js


node app.js

Once you run the above command on your CLI, you will now be able to open http://localhost:3000/ and you will see a nice working application.