1.3 KiB
1.3 KiB
Project Architecture & Guidelines
Monorepo Layout
- Backend:
./brewman(Python, managed viauv) - Frontend:
./overlord(Angular, managed vianpm/ng) - Environment: Root
.envfile containing shared/database variables.
Execution Rules & Commands
Backend (/brewman)
- Working Directory: Always execute backend commands within
./brewmanOR pass--directory brewmantouv. - Package & Script Management:
- Use
uvexclusively. Never run barepipor globalpython. - Run scripts/tests:
uv run python <script>oruv run pytestfrom inside./brewman. - Manage dependencies:
uv add <package>oruv remove <package>.
- Use
- Environment: The root
.envfile (../.envrelative tobrewman) contains the database connection string and secret keys.
Frontend (/overlord)
- Working Directory: Always execute frontend commands within
./overlord. - Commands:
- Run dev server:
npm startorng serve - Code generation:
ng g c components/<name>(prefer standalone components) - Testing:
ng test --watch=false - Build:
ng build
- Run dev server:
Database (PostgreSQL)
- Database settings are defined in the root
.env. - Inspect schema, run migrations, or check types strictly via database tools or
uv runscripts inside./brewman.