Answers for "express JS setup"

4

install express

npm i express
Posted by: Guest on October-03-2020
8

express js server

const express = require('express');
const app = express();
const PORT = process.env.PORT || 3000;

app.get('/', (req, res) => {
  res.send('<h1>Some HTML</h1>');
  res.send('<p>Even more HTML</p>');
});

app.listen(PORT, () => console.log(`Server is listening on port ${PORT}`));
Posted by: Guest on September-29-2020
11

install express globally

$ npm install express --no-save
Posted by: Guest on April-20-2020
0

express install

$ npx express-generator
Posted by: Guest on September-03-2020
1

node express setup

yarn add express 
yarn add --dev @types/express
Posted by: Guest on March-30-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language