This is the repository for the ITW-II Project at IIT (BHU) Varanasi - SwiftRail (Railway Management System).
- Make sure
python3.7
andpip
are installed. Installpipenv
by runningpip install pipenv
. - Install python dependencies using the command
pipenv install --ignore-pipfile
Please use only pipenv for managing dependencies (Follow this link if you are new to pipenv). - To activate this project's virtualenv, run
pipenv shell
. - Alternatively, run a command inside the virtualenv with
pipenv run
.
- Create database
swiftrail
using the commandCREATE DATABASE swiftrail;
by logging in toMySQL
. - Copy
my.cnf.example
asmy.cnf
and enter theusername
of the MySQL User in<username>
andpassword
in<password>
. - Run
python manage.py makemigrations
for creating new migrations - Run
python manage.py migrate
to apply migrations. - Run
python script.py
to update data in the database. - Start the development server using
python manage.py runserver
.
- Django
- MySQL
- Django Social Auth
- Instamojo API
- Indian Rail API