Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- const express = require('express');
- // Constants
- const PORT = 3000;
- // App
- const app = express();
- app.get('/', function (req, res) {
- res.send({
- hostname: process.env['HOSTNAME']
- });
- });
- app.listen(PORT);
- console.log('Running on http://localhost:' + PORT);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement