A COVID-19 Web App final project for the Web Development class at HCMUS. The website helps healthcare providers manage their patients and their products.
- The backend is hosted on Heroku, which has terminated the free dyno service. However, the backend is still functional and can be used as development environment.
- MongoDB Atlas instance has been stopped due to prolonged inactivity.
The website comes with 3 account tiers:
- Admin (tier 1)
- Doctor (tier 2 manager)
- Patient (tier 3 user)
For the detailed functionalities, please refer to the requirements.pdf file for more informations (the file is in Vietnamese, no English version for the moment).
Technologies used:
- Front-end: React.js
- Back-end: Node.js, Express.js, MongoDB
- Install npm and Node.js
- Allow invalid certificate in the browser (go to flags in the address bar and search for "Allow invalid certificates" and click "Enabled" )
The project comes with a pre-built script file to run all the necessary services.
- For Linux, locate to the project folder and run the following command (make sure to enable execution permission):
sudo chmod +x run.sh ./run.sh
- For Windows:
- Locate to client_payment folder
- Open package.json, find the "script" property and change the "start" property as follows:
"scripts": { "start": "SET PORT=2000 && react-app-rewired start" // other scripts }
- Locate back to the project folder and run the run.bat file
The website uses MongoDB as the database to store all the data. The database is hosted on MongoDB atlas and can be access through the Internet.
The website currently uses test data to test the functionalities with the following accounts:
-
For Covid System:
- Admin (only 1 account):
- username: 000000000
- password: admintest
- Doctor (currently 1 account, may be extended):
- username: 123456789
- password: doctor
- Patient (currently 1 account, may be extended):
- username: 111111111
- password: patient
- Admin (only 1 account):
-
For Payment System:
- Admin (only 1 account):
- username: 000000000
- password: admintest
- Admin (only 1 account):
To use a new clean database, do as follows:
- Locate to the .env file of each system (Covid System: server folder; Payment System: payment_system folder)
- Follow the instructions in the .env file to change the database connection string
Newly added SwaggerUIExpress and SwaggerAutoDocGen, auto generate docs for APIs following OpenAPI standard, available at /doc.
Special thanks to the following people for their contributions: