A web app for planning "pregames" around events already happening in a city. Users are able to post details to where they will be hanging out before the event and other users can see these details and say they are coming.
- Clone down this repository and cd into it.
- Once inside this repository, cd into
pregameproject - Create your virtual environment
python -m venv pregameenv
- Start virtual environment on Mac
source ./pregameenv/bin/activate
- Start virtual environment on Windows
source ./pregameenv/Scripts/activate
- Run
cd ..You should be in a directory containingrequirements.txt - Install the app's dependencies:
pip install -r requirements.txt
-
Run makemigrations
python manage.py makemigrations pregameApp -
Run migrate
python manage.py migrate
This will create all the migrations needed for Django Framework to post items to the database based on the models in the Models/ directory
- You'll need to creat an account with google maps API and obtain an api key
Once you have an api key, create a file called 'maps.py' in the views directory and put your key inside
Mapkey="your API_KEY here"
make sure you're inside of the 'pregame' directory
python manage.py runserver
Ctrl+C to quit
-
Go to http://127.0.0.1:8000/ and create an account
-
begin hosting and finding pregames!
