A NodeJS based project to host web api for verifying and get details of COWIN certificate.
- NodeJS (14+ recommended)
yarn
package manager
- Get certificate data by uploading certificate image(jpeg/png)
Request
POST /verify-certificate
Content-Type: multipart/form-data
file: <Image-Binary-data>
Response
200 OK
Content-Type: application/json
{
"data": {
"shortInfo": {
"userRefId": "",
"name": "",
"gender": "",
"age": "",
"nationality": "",
"vaccineDosesGiven": "",
"vaccineTotalDosesNeeded": "",
},
"certificateData": {}
}
}
- Run
yarn
command to install dependencies - Run
yarn dev
command to start app for development purpose - Run
yarn dev:debug
command to start in debug mode for development purpose - run
yarn build
to build the project. Build project located indist
folder. - run
yarn start
to start server
First build the app then run the app
- Run
npm run build
to build app todist
folder - Run
pm2 start pm2-ecosystem.config.js
to start app - Run
pm2 stop pm2-ecosystem.config.js
to stop - Run
pm2 restart pm2-ecosystem.config.js
to restart - Run
pm2 reload pm2-ecosystem.config.js
to reload - Run
pm2 delete pm2-ecosystem.config.js
to delete