ExpressJS vs NestJS

What is Express?

Express is one such framework that accomplishes this. It is a back end framework for Node JS. Current, it is being referred to as the de facto framework for apps built in Node.

A full stack app can be built by using Express, a database, a front-end framework (React, Angular, Vue) or any other library.

E

xpress in use

const express = require('express');

This imports express to our app.

const app = express();

This initialises our app.

app.get('/', (req,res)=>{
res.send('hi we got your request')
})

This lets us listen to a path, and respond to a request on that path.

app.listen(2000, ()=>{
console.log('listening at https://localhost:2000')
})

And we can listen to a port like that.