Created
June 15, 2018 02:03
-
-
Save dceddia/02cb982ea8b11c3e5e26c90c973e0b76 to your computer and use it in GitHub Desktop.
Bare bones Express server
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 bodyParser = require('body-parser'); | |
const app = express(); | |
// If your phone has a modern camera (unlike my iPhone 4S) | |
// you might wanna make this bigger. | |
app.use(bodyParser.json({ limit: '10mb' })); | |
// TODO: handle requests | |
const port = process.env.PORT || 5005; | |
app.listen(port); | |
console.log(`Grill server listening on ${port}`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment