Skip to content

Instantly share code, notes, and snippets.

@myogeshchavan97
Created November 26, 2019 11:28
Show Gist options
  • Save myogeshchavan97/5324b525c0b70f8f22a652f0c1c46f4b to your computer and use it in GitHub Desktop.
Save myogeshchavan97/5324b525c0b70f8f22a652f0c1c46f4b to your computer and use it in GitHub Desktop.
Initial Express Code
// 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