Last active
May 20, 2018 04:42
-
-
Save maisonm/1de9a7677a3f11b9c87f325b7c42594b 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()); | |
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