Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 575 Bytes

express.md

File metadata and controls

31 lines (21 loc) · 575 Bytes

express

Easily create REST APIs.

Installation npm install express
or yarn add express

Usage

const  express = require('express')

const app = express();

//GET route, which will show the message "Hello, World!".
app.get('/', (req, res) => {
	res.send('Hello, World!')
	})

//Starting the localhost server. 
//Use 'http://localhost:3333' to access.
app.listen(3333, () => {
	console.log('Listening on port 3333.')
	})

For more details, visit the official express documentation.