Skip to content

Instantly share code, notes, and snippets.

@tankala
Created June 9, 2018 11:28
Show Gist options
  • Save tankala/721854b8ca078680ca73a9c3010c63fa to your computer and use it in GitHub Desktop.
Save tankala/721854b8ca078680ca73a9c3010c63fa to your computer and use it in GitHub Desktop.
Code for building static content server using Node.js
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