Before you get started with Clinic, first let's make sure we install it on our machines and run a couple of tests just to make sure everything is working fine. Let's follow these steps to kick off:
1. Note: You must use a version of Node.js
$ npm install -g clinic $ npm install -g autocannon
2. Confirm that it has installed ok with:
$ clinic doctor --help
3. We have a set of example apps on Github. Let's run through the first one:
$ git clone email@example.com:nearform/node-clinic-doctor-example.git $ cd node-clinic-doctor-examples $ npm install $ clinic doctor --on-port 'autocannon localhost:$PORT' -- node ./slow-io
This will run autocannon against a simple app with an IO issue and once it's complete it will automatically launch the Doctor tool inside your browser.