Main
Team-1
Team-2
A dine-in app that leverages daily COVID-19 data to provide updated compliance status and hot spot notifications for reopened NYC restaurants.
https://dineline.herokuapp.com/
Use git clone with the repo's link
replace name_of_venv with the name you wanted for the virtual environment
python3 -m venv name_of_venv
# Activate the virtual environment
source name_of_venv/bin/activate
# Install required libraries
pip install -r requirements.txt
For security issues, all the keys for this project are separately stored in environmental variables and loaded during running time. Thus, in order to deploy and build locally, creating a .env file and set up all the keys is mandatory.
All the related key_names can be found in dinesafelysite/settings.py with a format of
XXX_KEY = os.environ.get("XXX_KEY")
To set up corresponding key in .env, simply add the key in this format:
XXX_KEY="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
For the first time deployment, to update the data model and initialize that database, use this command:
bash release-tasks.sh
All the commands that are run by this script can be viewed in release-tasks.sh
python manage.py createsuperuser
python manage.py collectstatic
python manage.py runserver
Congratulations! Initial local deployment is all set and now you can visit the default url of this project to see the webpage.