mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 20:52:08 +08:00
Improve readme readability
change install section position (move it up above the Example section)
This commit is contained in:
12
README.md
12
README.md
@ -7,6 +7,12 @@ Created with <3 for front-end developers who need a quick back-end for prototypi
|
|||||||
* [Egghead.io free video tutorial - Creating demo APIs with json-server](https://egghead.io/lessons/nodejs-creating-demo-apis-with-json-server)
|
* [Egghead.io free video tutorial - Creating demo APIs with json-server](https://egghead.io/lessons/nodejs-creating-demo-apis-with-json-server)
|
||||||
* [JSONPlaceholder - Live running version](http://jsonplaceholder.typicode.com)
|
* [JSONPlaceholder - Live running version](http://jsonplaceholder.typicode.com)
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ npm install -g json-server
|
||||||
|
```
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
Create a `db.json` file
|
Create a `db.json` file
|
||||||
@ -89,12 +95,6 @@ Returns default index file or serves `./public` directory.
|
|||||||
GET /
|
GET /
|
||||||
```
|
```
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ npm install -g json-server
|
|
||||||
```
|
|
||||||
|
|
||||||
## Extras
|
## Extras
|
||||||
|
|
||||||
### Static file server
|
### Static file server
|
||||||
|
Reference in New Issue
Block a user