Skip to content

TheBrokenBusCompany/BrokenBus-server

Repository files navigation

autobuses

Deploy locally

$ # Install python dependencies
$ pip install -r requirements.txt
$ # Configure Flask entrypoint
$ export FLASK_APP=server.py
$ # In windows
C: set FLASK_APP=server.py
$ # Run flask dev server
$ flask run --port 5001
$ # Run flask dev server available outside of localhost
$ flask run --host 0.0.0.0 --port 5001

Dependecies used

MySQL

MySQL connection must be set up in the secrets.json file. The server used must have the set up script run on it.

Python

External data sources

  • Open Data Malaga: Open data repository, no apikey required. Link

Load testing

To run load testing:

$ locust -f load_testing.py --host=http://localhost:5001

After launching it go to http://localhost:8089 and set the number of concurrent users and spawn rate.

About

Server for the BrokenBus application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •