Last active
May 25, 2018 19:52
-
-
Save maisonm/9c1f7e9f5764fc95adbbb4ea08bb4a84 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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