A NodeJS based project to host web api for verifying and get details of COWIN certificate.
- NodeJS (14+ recommended)
yarnpackage 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
yarncommand to install dependencies - Run
yarn devcommand to start app for development purpose - Run
yarn dev:debugcommand to start in debug mode for development purpose - run
yarn buildto build the project. Build project located indistfolder. - run
yarn startto start server
First build the app then run the app
- Run
npm run buildto build app todistfolder - Run
pm2 start pm2-ecosystem.config.jsto start app - Run
pm2 stop pm2-ecosystem.config.jsto stop - Run
pm2 restart pm2-ecosystem.config.jsto restart - Run
pm2 reload pm2-ecosystem.config.jsto reload - Run
pm2 delete pm2-ecosystem.config.jsto delete