Skip to content

Instantly share code, notes, and snippets.

@dg3feiko
Created February 5, 2015 09: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 dg3feiko/93d5bf3daa5f3e1396c1 to your computer and use it in GitHub Desktop.
Save dg3feiko/93d5bf3daa5f3e1396c1 to your computer and use it in GitHub Desktop.
express
/**
* Created by FeikoLai on 13/1/15.
*/
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
app.use(bodyParser.json());
app.get('/', function (req, res, next) {
res.json({"key":"value"});
next();
});
app.listen(3000, function () {
console.log('Express server listening on port 3000')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment