COVID-19 API service
Last updated 2 months ago by everydayproductive .
ISC · Original npm · Tarball · package.json
$ cnpm install @identity-box/covid-19-api 
SYNC missed versions from official npm registry.


COVID-19 service access point


First create a folder where you want your service api to be installed. Then install the service as follows:

$ mkdir covid-19-api
$ cd covid-19-api
$ yarn add @identity-box/covid-19-api
$ yarn setup


To directly run the service, use:


With PM2

You can take of advantage of pm2 to start the api service. Make sure you have pm2 installed globally:

$ yarn global add pm2

and ensure it is in $PATH:

export PATH=$PATH:/home/pi/.yarn/bin

Start service

$ pm2 start ecosystem.config.js

List all services

$ pm2 list

Settings on a service

$ pm2 show covid-19-api


To show both stdout and stderr logs run:

$ pm2 logs covid-19-api

This shows all the logs of covid-19-api and outputs the last 15 lines (the default).

To see only standard output logs, and print more lines from the output use:

$ pm2 logs covid-19-api --out --lines 150

Restart process after editing ecosystem

$ pm2 delete ecosystem.config.js
$ pm2 start ecosystem.config.js

Debug application from this directory

$ ./index.js

Current Tags

  • 0.1.0-alpha.0                                ...           latest (2 months ago)

1 Versions

  • 0.1.0-alpha.0                                ...           2 months ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (8)
Dev Dependencies (1)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |