@identity-box/covid-19-api

0.1.0-alpha.0 • Public • Published

COVID-19 API

COVID-19 service access point

Installation

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

Usage

To directly run the service, use:

./node_modules/.bin/covid-19-api

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

Logs

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

Readme

Keywords

Package Sidebar

Install

npm i @identity-box/covid-19-api

Weekly Downloads

1

Version

0.1.0-alpha.0

License

ISC

Unpacked Size

9.61 kB

Total Files

12

Last publish

Collaborators

  • everydayproductive