Skip to content

Instantly share code, notes, and snippets.

Created Jun 17, 2018
What would you like to do?
Medium article - Deploying Express.js website to VPS with Nginx, PM2 and Ubuntu 18.04
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