Created
November 26, 2019 11:28
-
-
Save myogeshchavan97/5324b525c0b70f8f22a652f0c1c46f4b to your computer and use it in GitHub Desktop.
Initial Express Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// section 1 | |
const express = require('express'); | |
const app = express(); | |
// section 2 | |
app.get('/', (req, res) => { | |
res.send("<h1>Welcome to the world of Express!</h1>"); | |
}); | |
// section 3 | |
app.listen(3000, (req, res) => { | |
console.log('server started on port 3000'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment