Skip to content

Instantly share code, notes, and snippets.

@maisonm
Last active May 25, 2018 19:52
Show Gist options
  • Save maisonm/9c1f7e9f5764fc95adbbb4ea08bb4a84 to your computer and use it in GitHub Desktop.
Save maisonm/9c1f7e9f5764fc95adbbb4ea08bb4a84 to your computer and use it in GitHub Desktop.
const express = require('express');
const app = express();
const port = 5000;
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
require('./routes')(app);
app.get('/', (req, res) => {
res.send('PORT 5000');
})
app.listen(port, (err) => {
if(err) { console.log(err) };
console.log('Listening on port ' + port);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment