Skip to content

Instantly share code, notes, and snippets.

@dceddia
Created June 15, 2018 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dceddia/02cb982ea8b11c3e5e26c90c973e0b76 to your computer and use it in GitHub Desktop.
Save dceddia/02cb982ea8b11c3e5e26c90c973e0b76 to your computer and use it in GitHub Desktop.
Bare bones Express server
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