From c9b776903932a3fb15af862be1ebad7c61dd18da Mon Sep 17 00:00:00 2001 From: Lau Siaw Young Date: Sat, 30 Jan 2016 16:36:46 +0800 Subject: [PATCH] Add section under Extras about alternative ports --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index b880aea..da31969 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,14 @@ json-server db.json json-server db.json --static ./static ``` +### Alternative port + +You can start JSON Server on other ports with the `--port` flag: + +```bash +$ json-server --watch db.json --port 3004 +``` + ### Access from anywhere You can access your fake API from anywhere using CORS and JSONP.