Skip to content

Training project aimed to improve the skills of asynchronous code.

License

Notifications You must be signed in to change notification settings

AndreyAD1/transport-app

Repository files navigation

transport-app

The backend part of public transport application.

Project Goal

This is the training project created to improve the skills of asynchronous code. The training courses for web-developers - dvmn.org.

Getting Started

Prerequisites

Python v3.9 should be already installed. Download a frontend web application here. Download an archive containing bus route coordinates here.

How to Install

  1. Download this repository;
  2. use pip to install dependecies
pip install -r requirements.txt

Consider that a virtual environment provides better isolation.

Quick Start

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.

transport-app

Tests

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

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Training project aimed to improve the skills of asynchronous code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages