Digital Infrastructure for Vaccination and Open Certification. An open source digital platform for large scale vaccination rollouts.
In this section, we’ll walk you through how to run DIVOC project on a local machine.
Install Docker Compose. Instructions can be found here
#### Basic Docker Compose Commands
Staring services docker-compose up
Restarting services docker-compose restart
Checking Status of services docker-compose ps
Monitoring service logs docker-compose logs
Clone DIVOC repository onto your local machine and navigate to DIVOC directory
git clone git@github.com:egovernments/DIVOC.git && cd DIVOC
docker-compose up -d
docker-compose ps]. All containers should be up.docker-compose restart <service>] should start it successfully in this case.docker-compose restart certificate_processor certificate_signer digilocker_support_api notification-service portal_api vaccination_api registry
localhost returns status 502, restart nginx. docker-compose restart gatewayExplore DIVOC
Below are routes to access local apps. Remaining routes can be found in nginx/nginx.conf
| Address | Application | |———|————-| | localhost | public app | | localhost/portal | portal app | | localhost/facility_app | facility app | | localhost/auth | keycloak |
#### DIVOC Walkthrough
In this section we will go through the steps involved in a typical flow. Starting from setting up facilities to generating a certificate after vaccination.
localhost/auth/admin) as admin (password : admin)Master on the left top corner and click on Add realmSelect File button (import option)realm-export.json in the keycloak directory. path:DIVOC/keycloakadmin-api
localhost/auth/admin) as admin (password : admin)Clients in Configure section on the left pane and click on admin-apiRegenerate Secret and copy the new secretADMIN_API_CLIENT_SECRET to the copied secret in docker-compose.ymlADMIN_API_CLIENT_SECRET.
docker-compose up -d --build --no-deps <service1> <service2>...
docker-compose restart gateway
localhost/config. Enter notification_templatesin the flag description field and click on Create New Flagnotification_templatesdefault, below attachment
{
"facilityPendingTasks": {
"html": "<h4>Dear Facility Administrator,</h4>Request you to upload / complete all details pertaining to this facility prior to execution of the Vaccination Program. <br/>Failing to do so, this facility: <br/><b>- will not be accessible to citizen during the pre-enrolment phase <br/>- will not be able to use the Vaccination App or generate digital certificates. </b><br/>Please submit the missing details at the earliest.DIVOC System Administrator",
"message": "Dear Facility Administrator,Request you to upload / complete all details pertaining to this facility prior to execution of the C19 VaccinationProgram. Failing to do so, this facility: - will not be accessible to citizen during the pre-enrolment phase - will not be able to use the Vaccination App or generate digital certificates. Please submit the missing details at the earliest.DIVOC System Administrator",
"subject": "DIVOC - Facility Pending Tasks"
},
"facilityRegistered": {
"message": "Welcome . Your facility has been registered under divoc. You can login at https://divoc.xiv.in/portal using contact numbers.",
"subject": "DIVOC - Facility Registered"
},
"facilityUpdate": {
"message": "Dear Facility Administrator. Your facility is been updated to ",
"subject": "DIVOC - Facility Updated"
},
"preEnrollmentRegistered": {
"message": ", you have been registered to receive . Please proceed to the nearest vaccination center. Please show the Pre Enrollment Code: to the center admin.",
"subject": "DIVOC - Pre-Enrollment"
},
"recipientCertified": {
"message": ", your vaccine certificate can be viewed and downloaded at: https://divoc.xiv.in/certificate/ ",
"subject": "DIVOC - Vaccination Certificate"
}
}
default key and a default distribution of 100%Create admin and controller users in Keycloak
localhost/auth/admin) as admin (password : admin)Users in Manage section on the left pane and click on Add UserAttributes section, Add new key as mobile_number and value as 0000000000. Click on Add and savesystem admin in the available groups and click on Join.username and mobile_number as 0000000001 and join controller groupsystem admin [Mobile Number : 0000000000, OTP : 1234]Download Template .csvUpload CSV button and upload the downloaded csvDownloaf Template .csvUpload CSV and upload a CSV file containing all the fields given in the templatecontroller [Mobile Number : 0000000001, OTP : 1234]MAKE ACTIVEfacilities.csv uploaded.localhost/portal/facility_admin) using the mobile number and OTP: 1234facility staff and mobile number 1111111111. Set status as enabled and set rate of 50
for the vaccination programVaccinator Details tab and Click Add VaccinatorMake Active button to activate vaccinatorlocalhost)localhost/facility_app) [Mobile Number : 1111111111, OTP : 1234]Verify Recipient to proceed for vaccinationlocalhost), recipients can :
Download/ vaccination certificatesVerify certificates by scanning a QR codeReport any side effects/symptoms after vaccinationComing soon …