Skip to content

Instantly share code, notes, and snippets.

@trickycoders
Created April 18, 2018 06:02
Show Gist options
  • Save trickycoders/641eb2e47c69870e4aa7d26cd22d4491 to your computer and use it in GitHub Desktop.
Save trickycoders/641eb2e47c69870e4aa7d26cd22d4491 to your computer and use it in GitHub Desktop.
server.js
'use strict';
const express = require('express');
// Constants
const PORT = 8080;
// App
const app = express();
app.get('/', function (req, res) {
res.send('Hello world!\n');
});
app.listen(PORT);
console.log('Running on http://localhost:' + PORT);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment