To run this app, you will need the following software:
-
Check that you have python
python --version
-
Check that you have Django
django-admin --version
-
Clone our repository into your machine
-
Create
env.sh
shell script and fill it with your credentials and run the shell script
export EMAIL=""
export PASSWORD=""
export SECRET_KEY="[can't be empty]"
export DB_HOST="0.0.0.0"
export DB_NAME="test_db"
export DB_USER="root"
export DB_PASSWORD="root"
-
In your terminal, run docker compose
docker compose up -d
-
Go into
college_living
folder -
Install requirements packages
pip install -r requirements.txt
-
Migrate model into database
python manage.py migrate
-
Load initial data
python manage.py loadata colleges/fixtures/*.json
-
Start server
python manage.py runserver
-
Go to http://127.0.0.1:8000/ and start exploring!