Created
June 9, 2018 11:28
-
-
Save tankala/721854b8ca078680ca73a9c3010c63fa to your computer and use it in GitHub Desktop.
Code for building static content server using Node.js
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
var express = require('express'); | |
var app = express(); | |
//Serves resources from public folder | |
app.use(express.static('public')); | |
app.listen(3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment