Skip to content

Instantly share code, notes, and snippets.

@yoelmacia
Created December 4, 2019 11:54
Show Gist options
  • Save yoelmacia/b749ffad073991eeda780aa74b5716fd to your computer and use it in GitHub Desktop.
Save yoelmacia/b749ffad073991eeda780aa74b5716fd to your computer and use it in GitHub Desktop.
const express = require("express");
const app = express();
const port = process.env.PORT || 3000;
app.get("/", (req, res) => {
res.sendFile("index.html", { root: __dirname });
});
app.listen(port, () => console.log(`Example app listening on port ${port}!`));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment