readme, deps
This commit is contained in:
11
README.md
11
README.md
@ -31,7 +31,7 @@ Features:
|
|||||||
|
|
||||||
## Synopsis
|
## Synopsis
|
||||||
|
|
||||||
This package installs the `ws` command-line tool (take a look at the [usage guide](https://github.com/lwsjs/local-web-server/wiki/CLI-usage)). The most simple use case is to run `ws` without any arguments - this will **host the current directory as a static web site**. Navigating to the server will render your `index.html` or show a directory listing, if you don't have one.
|
This package installs the `ws` command-line tool (take a look at the [usage guide](https://github.com/lwsjs/local-web-server/wiki/CLI-usage)). The most simple use case is to run `ws` without any arguments - this will **host the current directory as a static web site**. Navigating to the server will render a directory listing or your `index.html`, if that file exists.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ ws
|
$ ws
|
||||||
@ -115,20 +115,17 @@ $ curl http://127.0.0.1:8000/users
|
|||||||
{
|
{
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"name": "Lloyd",
|
"name": "Lloyd",
|
||||||
"age": 40,
|
"age": 40
|
||||||
"nationality": "English"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 2,
|
"id": 2,
|
||||||
"name": "Mona",
|
"name": "Mona",
|
||||||
"age": 34,
|
"age": 34
|
||||||
"nationality": "Palestinian"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 3,
|
"id": 3,
|
||||||
"name": "Francesco",
|
"name": "Francesco",
|
||||||
"age": 24,
|
"age": 24
|
||||||
"nationality": "Italian"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 4,
|
"id": 4,
|
||||||
|
@ -42,9 +42,9 @@
|
|||||||
"lws-json": "^0.3.2",
|
"lws-json": "^0.3.2",
|
||||||
"lws-log": "^0.3.0",
|
"lws-log": "^0.3.0",
|
||||||
"lws-mime": "^0.2.1",
|
"lws-mime": "^0.2.1",
|
||||||
"lws-mock-response": "^0.2.4",
|
"lws-mock-response": "^0.3.0",
|
||||||
"lws-request-monitor": "^0.1.0",
|
"lws-request-monitor": "^0.1.2",
|
||||||
"lws-rewrite": "^0.3.4",
|
"lws-rewrite": "^0.3.5",
|
||||||
"lws-spa": "^0.2.2",
|
"lws-spa": "^0.2.2",
|
||||||
"lws-static": "^0.3.4"
|
"lws-static": "^0.3.4"
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user