A full-stack meal tracking application built with FastAPI and Python.
The project includes a backend REST API, a frontend interface, automated testing with pytest, and Docker support using Docker Compose.
- Create meals
- Retrieve all meals
- Update meals
- Delete meals
- Store data in CSV format
- Automated testing with pytest
Clone the repository:
git clone https://github.com/CamillaEva/PythonEksamen
cd PythonEksamenInstall dependencies:
pip install -r requirements.txtThe application can be started using Docker Compose.
docker compose up --builddocker compose updocker compose downThe project uses environment variables stored in a .env file.
A template file named .env.example is included in the project.
Create your own .env file based on the example.
You can create your own API keys here:
https://admin.mistral.ai/organization/api-keys
https://fdc.nal.usda.gov/api-key-signup
The project includes automated tests using pytest.
To run the tests manually:
cd backend
$ PYTHONPATH=. uv run pytest