Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- const express = require('express');
- // Constants
- const PORT = 8080;
- const HOST = '0.0.0.0';
- // App
- const app = express();
- app.get('/', (req, res) => {
- res.send('Hello world\n');
- });
- app.listen(PORT, HOST);
- console.log(`Running on http://${HOST}:${PORT}`);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement