-
Notifications
You must be signed in to change notification settings - Fork 90
How to launch a development web server
Lloyd Brookes edited this page Jun 18, 2019
·
11 revisions
The default behaviour of local-web-server is to host the current working directory as a static web site.
- Install local-web-server to get the
wscommand.
$ npm install -g local-web-server
- Navigate into to your project
$ cd example-project
- Launch the webserver. By default it hosts your project as a static site.
$ ws
Listening on http://mba4.local:8000, http://127.0.0.1:8000, http://192.168.0.200:8000
- Navigating to one of the listed URLs will render a directory listing or your
index.html, if that file exists.