CE290I - Control and information management
Systems Engineering, UC Berkeley
Author:
Elói Pereira, PhD
Head of Data Science, Car IQ Inc.
- A simulator reads vehicle data (e.g. GPS location) from a csv file and replays it
- The current location of the vehicle needs to be served to a variety of other applications, e.g.:
- a web app for visualization
- an app that monitors and computes metrics
- Git
- Docker Engine
- A command line interface (e.g. bash, terminal)
Python
-
Version: 3.12
-
Libraries:
- FastAPI
- Pydantic
- Uvicorn
Redis
- Version: 7.2
- Pyenv: Python version management
- VSCode: Editor
- Pylance: python support for VSCode
- Flake8 linter
- Black formatter
- Pre-commit
- Marp to build this presentation
- Clone the git repo
- From your favorite CLI:
- Run
docker compose -f docker-compose-ed.yml up
(Event-Driven) or - Run
docker compose -f docker-compose-rest.yml up
(REST) - Run
docker compose down
to bring the services down
- Access the Swagger API documentation at http://localhost:8000/docs