Clone the project
git clone https://github.com/PICT-PBL-6-2021-22/public_health_record_management_systemGo to the project directory
cd public_health_record_management_systemInstall dependencies in the server
npm installGo to the client folder
cd clientInstall dependencies in the client
npm installStart the client react project
npm run startCome back to the server
cd ..Start Server using node or nodemon
node app.js
or nodemon app.jsPlease Use Tailwind CSS for styling components
To run this project, you will need to add the following environment variables to your .env file
DATABASE
SECRET_KEY
DATABASE contains the dbURI of MongoDB connections and SECRET_KEY contains the Secret key for signing and verifying JSON Web Tokens (JWT)
Note: The database credentials and secret keys included in this repository were sample values used for demonstration purposes only. They have been deleted, and all passwords for the original services have been rotated. Please generate your own credentials and use your own secrets when deploying or testing this project.