-
-
Save panzelva/55f1cd6f1807fc88275c6d78b9e7c6c4 to your computer and use it in GitHub Desktop.
Medium article - Deploying Express.js website to VPS with Nginx, PM2 and Ubuntu 18.04
This file contains 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(); | |
app.get('/', (req, res) => { | |
res.send("Hello World!"); | |
}); | |
const port = 3000; | |
const server = app.listen(port, () => { | |
console.log(`Listening on http://localhost:${port}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment