Answers for "what is express js"

14

node js express

basic server

const express =require('express');
const app = express();
const PORT = 5000;


app.get('/',(req,res)=>{
   res.json({message: 'Welcome to the backend'})
})


app.listen(PORT ,()=>console.log(`Connected to ${PORT}`)
Posted by: Guest on April-02-2020
0

express js

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

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

app.listen(port, () => {
  console.log(`App listening at http://localhost:${port}`)
});
Posted by: Guest on June-19-2021
7

express js

Express is a minimal and flexible Node.js web application framework
that provides a robust set of features for web and mobile
applications.
Posted by: Guest on April-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language