Node.js with Express Framework

Veröffentlicht am: 04. April 2020

Lesedauer: 1 Min.

Kategorien:
mkdir myapp
cd myapp
npm init -y
npm install express
touch index.js


// inside index.js past the following code

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}`))

// in the Terminal enter the following command to start the Application

node index.js

Articles in related Categories

  • Express
  • 13. April 2020

  • Express
  • 13. April 2020