This application pulls the real time data from Denvers RTD transit system. Website users request bus times from the database using the interface in order to find their stops next arrival times.
This app is different because you can approch in the stop number and get exact times for that stop.
The application finds the arrival times of all the buses for the day and stores them in the database. Data pulling, parsing, and the loading of the database is handled in the background with Celery task manager. RabbitMQ is used for messaging. Gunicorn serving our webpage.
I wanted a more up to date bus arrival times using RTD's predictive data because the existing app was lacking.
- Navigate into the busbuddy_webapp directory
- Install pip and virtualenv with "sudo apt-get install pip virtualenv"
- Set up your virtualenv directory and activate it. See virtualenv documentation.
- run "pip install -r requirements.txt" to install the needed packages.
- run "chmod +x start_service.sh stop_service to run start and stop script locally
- run ./start_service.sh to start app. Wait for the app to come up and load database.
- run ./stop_service.sh to stop the messaging queue, celery and gunicorn completely.