Skip to content

Commit c9b7769

Browse files
committed
Add section under Extras about alternative ports
1 parent 0ad8131 commit c9b7769

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,14 @@ json-server db.json
180180
json-server db.json --static ./static
181181
```
182182

183+
### Alternative port
184+
185+
You can start JSON Server on other ports with the `--port` flag:
186+
187+
```bash
188+
$ json-server --watch db.json --port 3004
189+
```
190+
183191
### Access from anywhere
184192

185193
You can access your fake API from anywhere using CORS and JSONP.

0 commit comments

Comments
 (0)