Skip to content

Instantly share code, notes, and snippets.

@nairihar
Last active April 28, 2018 11:25
Show Gist options
  • Save nairihar/8f1bd04f51f192d514b7de58ac8ee2c2 to your computer and use it in GitHub Desktop.
Save nairihar/8f1bd04f51f192d514b7de58ac8ee2c2 to your computer and use it in GitHub Desktop.
NodeJS with NGINX, medium, basic NodeJS server
const express = require('express')
const app = express()
const port = process.argv[2]
app.get('/', (req, res) => res.send(`Hello World!, port: ${port}`))
app.listen(port, () => console.log(`Example app listening on port ${port}!`))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment