https://hotzone-group-q-final.herokuapp.com/
This iteration focuses on calculating case clusters and presenting them nicely. The functionality to connect locations (visits) with cases is also introduced.
- Location can only be created based on GeoData Store i.e user cannot choose to input own values for the Location.
- Data cannot be loaded from spreadsheets or CSV files, which are legacy methods of storing data.
- Cases are identified by global IDs, instead of being grouped by disease outbreaks first.
- Takes long to load.
.env file in your local HotZone directory (project root). This should contain the following environment variables: DEPLOYMENT_URL, DATABASE_URL, DEBUG & SECRET_KEY.
- Change directory to
HotZone/server. - Install all dependencies from
requirements.txtusingpip install -r /path/to/requirements.txt - Make sure you switch to your virtual environments. If you want to go with the one in the repository, you can simply enter the command
source server-env/bin/activate - From the
serverdirectory,gunicorn server.wsgi:applicationORheroku local.
- Change directory to
HotZone/web. - Install all dependencies using
yarn install. - Run the frontend using
yarn start.
Alternatively, if you have created the latest build (i.e. you ran yarn build , you can access the frontend from the backend url as well.)
We use the deployment branch for deployment. To deploy, follow these steps:
- Navigate to the
webdirectory and then runyarn build. This will placebuildfolder in the server folder. - With this, you are ready to deploy. Now, you can run from the directory
HotZone(project root):git push origin `git subtree split --prefix server`:deployment --force. This places the files required for the deplyment in the correspondingdeploymentbranch. Sometimes, if this command is not run properly, you may end up deleting the remotedeploymentbranch. If that happens, follow the next section.
- You should firstly restore the
deploymentremote branch. You can do this by pushing the subtree to thedeploymentbranch. For this, from the directoryHotZone(project root) do:git subtree push --prefix server origin deployment - Navigate over to the Heroku dashboard and restore the CI/CD. Scroll down to Automatic Deploys and from the dropdown, select the
deploymentbranch. - You still have to manually deploy this once. So Scroll further down to the Manual deploy section and click on deploy.