← choose a testing method | how-to's | how to do a health-check | dividend tracker api documentation
You only have to test using one method.
There are multiple methods to test the health of the API. See Step 2: Choose a method to test the endpoint
The server must be up and running!
If you haven't already done so, then start your local server.
Step 2: Method 2: Test by running test-health.js
- Navigate to the
scriptsfolder of your locally forked Dividend Tracker API repo - Run the
test-health.jsscript with the following command:
node test-health.js
If successful then you'll see the output below:
node test-health.js
Health check successful: { message: 'Hello API!' }