Our frontend using Vue.JS created with starport from tendermint there is 2 main pages, user page and doctor page.
This page is the user's page. User's device will open this page after scan QR code. This page contain every function of user as the list below.
- Check in and Check out.
- Quarantine.
- Covid.
In this section user could see their check-in and check-out log and could press check in button to commit check in. The location will be assigned automatically
- For checking-in click http://localhost:8080/main?id=5faf9e8c6e770822234c3dde
Id is represented the place, we don't allow user to input by themselves but could access via scan our pre-generated QR code
You need to login with mnemonic before checkin
Find out more places from https://web-swacp72spq-as.a.run.app/place
-
After user press check in button the application will
- Automatically create log transaction with status CHECKIN, timestamp and other required information.
- store account into local storage
-
After user press check out button the application will
- Automatically create log transaction with account from local storage, status CHECKOUT, timestamp and other required information.
In this section our web application will query with account in the local storage and show all quarantine needed for the user.
Same as log and quarantine, this section will list all covid related transaction and provide the self-report covid button.
After user press the self-report button the application will
- Generate new account.
- Create covid transaction with timestamp, status PENDING and address from user local storage.
- save account to local storage.
This page is for Doctor who verified by trusted third party to see is it any covid pending to approve or reject.
In this state doctor must create the doctor transaction to verify he/she is a doctor. If there is no doctor transaction relate to his/her account he/she will not see as a doctor.
This page is the first page of the doctor. The verfied doctor must provide nmemonic password in order to access doctor function.
This section consist of two parts, one for list pending covid transaction and one for approve/reject each transaction.





