Skip to content

How to launch a development web server

Lloyd Brookes edited this page Jul 7, 2017 · 11 revisions

This example will serve your current project as a static web site.

  1. Install local-web-server
$ npm install -g local-web-server
  1. Navigate into to your project
$ cd example-project
  1. Launch the webserver. By default it hosts your project as a static site.
$ ws
Serving at http://mbp.local:8000, http://127.0.0.1:8000, http://192.168.0.100:8000
  1. Navigating to one of the listed URLs will render a directory listing or your index.html, if that file exists.
Clone this wiki locally