SHARE
TWEET

Untitled

a guest Jun 20th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const express = require("express");
  2. const app = express();
  3.  
  4. app.get("/", (req, res) => {
  5.   const message = "Hello world";
  6.   res.send(message);
  7. });
  8.  
  9. app.listen(process.env.PORT || 8080, () => {
  10.   console.log(`Your app is listening on port ${process.env.PORT || 8080}`);
  11. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top