Run Static Files Locally Using Node.js

  • Post author:
  • Post category:Tools

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

5. Open in your favorite browser.