Skip to content

Instantly share code, notes, and snippets.

@dmelechow
Last active November 13, 2019 13:05
Show Gist options
  • Select an option

  • Save dmelechow/2c83e7d9c532eedb1848482ff96d48af to your computer and use it in GitHub Desktop.

Select an option

Save dmelechow/2c83e7d9c532eedb1848482ff96d48af to your computer and use it in GitHub Desktop.
1. npm init
2. npm install express
3. node index.js
content of index.js
const express = require('express')
const app = express();
app.get('/', (req, res) => {
res.send('Hello World!')
});
app.listen(8000, () => {
console.log('Example app listening on port 8000!')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment