Skip to content

How to launch a HTTP2 development web server

Lloyd Brookes edited this page Jun 26, 2017 · 8 revisions

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

  1. Navigate into to your project

    $ cd example-project
    
  2. Assuming you already installed local-web-server, next install lws-http2.

    $ npm install lws-http2 --save-dev
    
  3. Launch an HTTP2 server by passing the module name lws-http2 to --server (the lws- prefix is optional).

    $ ws --server http2
    Serving at http://mbp.local:8000, http://127.0.0.1:8000, http://192.168.0.100:8000
    
Clone this wiki locally