Last active
April 28, 2018 11:25
-
-
Save nairihar/8f1bd04f51f192d514b7de58ac8ee2c2 to your computer and use it in GitHub Desktop.
NodeJS with NGINX, medium, basic NodeJS server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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