syed-saif / hackathon_backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hackathon-backend-repo

Steps to run the app

  1. Clone this repo
  2. Open the terminal and create virtualenv for this repo
virtualenv venv_ha
  1. browse to the repo directory
  2. Create Postgresql database - Login to the postgres shell and run this command:
create database hackathon_app;
  1. Create .env file and add database name, username and password. Sample:
DATABASE_NAME='hackathon_app'
DATABASE_USERNAME='psqluser'
DATABASE_PASSWORD='psqlpassword'
  1. Activate virutalenvironment
source </path/to/venv_ha>/bin/activate
  1. Run pip install -r requirements.txt. This should install all the dependecies.

  2. Run migrations

python manage.py migrate
  1. Run python manage.py runserver. This should start the webserver and you are good to go.

Thanks for reading!

About


Languages

Language:Python 99.8%Language:HTML 0.2%