Use Node.js powers to Mock RESTful JSON APIs, Prototype real-time services and Discover and use ecosystem utilities.
install dependencies
cd mock-srv
npm install
npm run dev
Make any modifications as needed to the
mock-srv/routes
andmock-srv/plugins
Install and serve our static directory with
serve
from the project's root directory
npm install -g serve
serve
static
with default values
serve static
Then open http://localhost:5000/ to interact with the mock server
serve
static
with cors enabled
serve static -C
serve
static
with cors and https enabled
serve static -C --ssl-key full-path-to/key.pem --ssl-cert full-path-to/cert.pem
install dependencies
cd my-cli
npm install
npm link
my-cli
Link the
my-cli
with npm to be used from any directory in the terminal
npm link
Let's run the interactive cli
my-cli --help
# or
my-cli