Files
uis-cloud-computing/7project/src/backend

Backend

This directory contains the backend code for the project. It is built using Python and FastAPI framework and with database migrations support using Alembic.

Directory structure

  • alembic/ - database migrations
  • app/ - main application code
    • api/ - API endpoints - routers/controllers with request handling logic
    • core/ - core application logic - database session management, security
    • models/ - database models
    • schemas/ - Endpoint schemas
    • services/ - utilities for various tasks
    • workers/ - background tasks
    • app.py - FastAPI startup script
    • celery_app.py - Celery startup script
  • tests/ - tests
  • docker-compose.test.yml - docker compose for testing database
  • Dockerfile - production Dockerfile
  • main.py - App entrypoint
  • requirements.txt - Python dependencies
  • test_locally.sh - script to run tests with temporary database