How tuosminh/greenedumap-dtudz-document works
GreenEduMap is presented as a green-city data and education platform. Its visible product workflow spans public environmental/map views, AI recommendations, school learning, and administrative monitoring; a separate FastAPI service handles registration, login, tokens, roles, users, and developer API keys. The README documents broader OpenData, GIS, and real-time ambitions, but the sampled files do not establish their runtime wiring. Web-page-to-hook/backend links are therefore omitted where source evidence is unavailable.
Main entry points: page.tsx Web application · main.py Auth API routes · auth.py Auth operations · dependencies.py Auth dependencies
Components 18
Web experience
- Web application
modules/web-app/src/app/page.tsx
Green city features
- Environmental map
modules/web-app/src/app/map/page.tsx - Environmental data
modules/web-app/src/app/stats/page.tsx - AI insights
modules/web-app/src/app/ai-analysis/page.tsx - Green recommendations
modules/web-app/src/app/recommendations/page.tsx - GreenBot chat
modules/web-app/src/app/chat/page.tsx - School learning
modules/web-app/src/app/school/courses/page.tsx - School dashboard
modules/web-app/src/app/school/dashboard/page.tsx - Admin dashboard
modules/web-app/src/app/admin/dashboard/page.tsx - Ward management
modules/web-app/src/app/admin/wards/page.tsx
Authentication service
- Auth API routes
modules/auth-service/app/main.py - Auth dependencies
modules/auth-service/app/dependencies.py - Auth operations
modules/auth-service/app/services/auth.py - User management
modules/auth-service/app/services/user.py
Auth data and security
- Token and key security
modules/auth-service/app/core/security.py - User and token models
modules/auth-service/app/models.py - Auth database
modules/auth-service/app/core/database.py
Other components
- Community users
Connections 20
- Community users → Web application: uses platform
- Web application → Environmental map: offers map
- Web application → Environmental data: shows environment
- Web application → AI insights: offers analysis
- Web application → Green recommendations: offers actions
- Web application → GreenBot chat: offers GreenBot
- Web application → School learning: supports learning
- Web application → School dashboard: supports schools
- Web application → Admin dashboard: supports governance
- Web application → Ward management: manages areas
- Auth API routes → Auth operations: dispatches auth
modules/auth-service/app/main.py - Auth API routes → User management: dispatches user ops
modules/auth-service/app/main.py - Auth API routes → Auth dependencies: uses dependencies
modules/auth-service/app/main.py - Auth dependencies → Auth operations: creates service
modules/auth-service/app/dependencies.py - Auth dependencies → User management: creates service
modules/auth-service/app/dependencies.py - Auth operations → Token and key security: hashes and signs
modules/auth-service/app/services/auth.py - Auth operations → User and token models: queries and stores
modules/auth-service/app/services/auth.py - User management → User and token models: queries and updates
modules/auth-service/app/services/user.py - User and token models → Auth database: uses base
modules/auth-service/app/models.py - Auth API routes → Auth database: initializes and closes
modules/auth-service/app/main.py