How mti-2023-tala/studasso works
Main Components
a. Frontend Applications (3 separate apps):
• Student Portal (Angular)
• Association Portal (Angular)
• School Portal (Angular)
b. Backend Components:
• NestJS Backend API
• PostgreSQL Database
• Redis Cache
• Authentication System
Architecture Layers
Frontend Layer:
┌─────────────────────────────────────────────────────┐
• Frontend Apps │
• ┬────────────────┬───────────────────┤
• Student Portal│Association Portal│ School Portal │
• ┬───────┴────────┬───────┴─────────┬─────────┘
• ┼──────────────────┘
Shared Frontend Components:
┌─────────────────────────────────────────────────────┐
• Shared Frontend Libraries │
• ┬──────────────┬────────────┬──────────┤
• Formly │ Modal │ Navbar │ Toast │
• Generic │ Table │ Tag │ Tooltip │
• ┴──────────────┴────────────┴──────────┘
Backend Layer:
┌─────────────────────────────────────────────────────┐
• NestJS Backend │
• ┬──────────────┬────────────┬──────────┤
• Core │ Features │ Auth │ API │
• Modules │ Modules │ Module │ Gateway │
• ┬──────┴──────┬───────┴─────┬─────┴────┬─────┘
┌──────┴──────┐┌────┴─────┐ ┌──────┴───┐┌────┴─────┐
• Database ││ Redis │ │ JWT Auth ││ Swagger │
• (PostgreSQL) ││ Cache │ │ ││ Docs │
• ┘└──────────┘ └──────────┘└──────────┘
Key Design Elements
• Blue for frontend applications
• Green for backend services
• Yellow for databases/storage
• Red for authentication/security components
• Frontend → Backend (REST API calls)
• Backend → Database (Prisma ORM)
• Backend → Redis (Caching)
Important Details
• Authentication flow
• Feature modules organization
• Shared libraries and components
• Database schema representation
• API endpoints structure
Implementation Notes
• Modular architecture using NX workspace
• Separation of concerns between different portals
• Shared component libraries
• Core backend services
• Database relationships
• Caching strategy
• Authentication flow
Deployment Architecture
┌─────────────────┐ ┌─────────────────┐
• CI/CD (.yml) │───>│ Docker Images │
• ┬────────┘ └────────┬────────┘
• v v
┌─────────────────┐ ┌─────────────────┐
• Load Balancer │<───│ Container Orch │
• ┬────────┘ └────────┬────────┘
• ┌────┴─────────────────────┘
• v
┌─────────────────┐
• Production Env │
• ┘