Skip to content

Instantly share code, notes, and snippets.

@vkuznecovas
Created January 26, 2018 16:10
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 vkuznecovas/1e615a5a9f9370dfe7caddf9fe626011 to your computer and use it in GitHub Desktop.
Save vkuznecovas/1e615a5a9f9370dfe7caddf9fe626011 to your computer and use it in GitHub Desktop.
express-test
const express = require('express')
const app = express()
app.enable('trust proxy')
app.get('/', (req, res) => res.send(req.ip))
app.listen(8080, () => console.log('Example app listening on port 8080!'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment