Skip to content

Instantly share code, notes, and snippets.

@anuraj
Created April 23, 2021 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anuraj/545dbcbd7ded53b60f054d3b4a67aafb to your computer and use it in GitHub Desktop.
Save anuraj/545dbcbd7ded53b60f054d3b4a67aafb to your computer and use it in GitHub Desktop.
index.js
'use strict';
const express = require('express');
// Constants
const PORT = 8095;
const HOST = '0.0.0.0';
// App
const app = express();
app.get('/', (req, res) => {
res.send('Hello World');
});
app.listen(PORT, HOST);
console.log(`Running on http://${HOST}:${PORT}`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment