This is a simple FastAPI application that uses Beanie as an ODM for MongoDB.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- app - contains FastAPI application code
- app/api - contains API routers and API specific code
- app/api/v1/views - contains API endpoints
- app/api/v1/serializers - contains pydantic models
- app/api/v1/services - contains business logic
- app/core - contains core application code
- app/middleware - contains middleware code
- app/models - contains beanie models
- tests - contain unit tests for the FastAPI application
- docker-compose.dev.yml: Docker Compose file for the development environment.
- docker-compose.test.yml: Docker Compose file for running tests.
- Clone the repository:
git clone https://github.com/YousefAldabbas/eleva-project.git
- Change directory to the project root directory:
cd eleva-project
- Run the tests:
docker-compose -f docker-compose.test.yml up --build
- Run the application:
docker-compose -f docker-compose.prod.yml up -d --build