Hackathon-backend-repo
Steps to run the app
- Clone this repo
- Open the terminal and create
virtualenv
for this repo
virtualenv venv_ha
- browse to the repo directory
- Create Postgresql database - Login to the postgres shell and run this command:
create database hackathon_app;
- Create
.env
file and add database name, username and password. Sample:
DATABASE_NAME='hackathon_app'
DATABASE_USERNAME='psqluser'
DATABASE_PASSWORD='psqlpassword'
- Activate virutalenvironment
source </path/to/venv_ha>/bin/activate
-
Run
pip install -r requirements.txt
. This should install all the dependecies. -
Run migrations
python manage.py migrate
- Run
python manage.py runserver
. This should start the webserver and you are good to go.
Thanks for reading!