A web app that uses gamification to promote engagement with sustainability on campus at the University of Exeter. Streatham GO
NOTE for windows use python
not python3
python3 -m venv .venv
For Mac:
source .venv/bin/activate
For Windows:
By default windows prevents you from being able to run scripts. In order to by pass this you must first enter this command, making sure that you are running the terminal as admin.
Set-ExecutionPolicy RemoteSigned
Then you may run this line.
.venv\Scripts\activate
After running the scripts, you may return to the original setting by entering the following command:
Set-ExecutionPolicy RemoteSigned
pip3 install -r requirements.txt
touch streatham_go/streatham_go/.env
open new file and add the following settings. NOTE If using DEBUG=True, EMAIL_* settings not needed
DEBUG=[True|False]
SECRET_KEY=[a secret key (can be anything)]
GOOGLE_API_KEY=[google maps API key]
EMAIL_HOST=smtp.gmail.com
[email protected]
EMAIL_HOST_PASSWORD=[check discord]
cd streatham_go
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py loaddata games.json
python3 manage.py loaddata buildings.json
python3 manage.py loaddate words.json
pytest
python3 manage.py runserver
If you have installed a new package via pip3
(pip
for windows), you MUST add this to the requirements.txt
file
To do so (in base directory):
pip3 freeze > requirements.txt