Answers for "express node js app"

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
3

express nodejs

Fast, unopinionated, minimalist web framework for Node.js
Posted by: Guest on January-29-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language