Run Static Files Locally Using Node.js

1. Install Node.js if you don’t have it already.

2. Install node-static.

> npm install -g node-static

3. Create a sample index.html you would like to serve.

4. Run static on the index.html directory.

> static
serving "." at http://127.0.0.1:8080

5. Open http://127.0.0.1:8080 in your favorite browser.