Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.79 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.79 KB

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.