Created
November 11, 2016 22:01
-
-
Save marknorgren/c90941c89ebcb659cbcce394b0cb63e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require("express"); | |
| const app = express(); | |
| app.use(express.static('public')); | |
| app.get("/", function(req, res) { | |
| res.sendFile( __dirname + '/index.html'); | |
| }); | |
| const port = 3001; | |
| app.listen(port, function() { | |
| console.log("Listening on " + port); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment