Browse Source

readme

master
Lloyd Brookes 5 years ago
parent
commit
cc719992e8
  1. 4
      README.md

4
README.md

@ -45,6 +45,8 @@ $ ws
Serving at http://mbp.local:8000, http://127.0.0.1:8000, http://192.168.0.100:8000
```
![Static static log output](https://imgur.com/download/NJC3POY)
### Single Page Application
Serving a Single Page Application (an app with client-side routing, e.g. a React or Angular app) is as trivial as specifying the name of your single page:
@ -69,6 +71,8 @@ $ ws --rewrite '/api/* -> https://internal-service.local/api/$1'
Serving at http://mbp.local:8000, http://127.0.0.1:8000, http://192.168.0.100:8000
```
![Proxy json requests to remote resource](https://imgur.com/download/3flcbJn)
### HTTPS
Launch a secure server by setting the `--https` flag. [See the wiki](https://github.com/lwsjs/local-web-server/wiki) for further configuration options and a guide on how to get the "green padlock" in your browser.

Loading…
Cancel
Save