The backend part of public transport application.
This is the training project created to improve the skills of asynchronous code. The training courses for web-developers - dvmn.org.
Python v3.9 should be already installed. Download a frontend web application here. Download an archive containing bus route coordinates here.
- Download this repository;
- use pip to install dependecies
pip install -r requirements.txt
Consider that a virtual environment provides better isolation.
This repository contains a server and its client simulating buses. The server receives bus locations and sends them to the frontend application. A linux command to run the server:
python server.py
A linux command to run the client simulating buses:
python fake_bus.py ws:https://127.0.0.1:8080
Open index.html in Google Chrome. If everything works fine, a browser will display moving buses on a map.
The linux commands to run the tests:
pip install -r requirements-dev.txt
pytest tests --server_host ws:https://127.0.0.1 --bus_port 8080 --browser_port 8000
This project is licensed under the MIT License - see the LICENSE file for details.