Skip to content

Instantly share code, notes, and snippets.

@dceddia dceddia/server.js
Created Jun 15, 2018

What would you like to do?
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;
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
You can’t perform that action at this time.