Backend Source Guide¶
This guide provides an overview of the backend source code structure, conventions, and best practices for the ReViewPoint project.
Directory Structure¶
src/
— Main backend source codesrc/api/
— API endpoint implementationssrc/models/
— Database models and schemassrc/utils/
— Utility modules (hashing, validation, etc.)src/repositories/
— Data access and repository logicsrc/services/
— Business logic and service layersrc/middlewares/
— Middleware for request/response processingtests/
— Backend test suite
Key Conventions¶
- Follows PEP8 and project-specific linting rules
- Uses dependency injection for services and repositories
- All API endpoints are versioned (e.g.,
/api/v1/
) - Error handling is centralized and consistent
Running Backend Tests¶
To run backend tests:
hatch run test
Or use your preferred test runner (e.g., pytest).
Related Documentation¶
Update this guide as the backend evolves to keep documentation accurate and helpful.