How felixchen3674/mern-09-07-2026 works
This repository is a teaching monorepo: its curriculum presents web and backend topics, while separate directories contain runnable examples and workshop exercises. A learner browses routed lessons in the curriculum app; the backend examples demonstrate layered CRUD, authorization, microservices, and database behavior. The graph highlights those distinct stages and selected internal layers. Evidence is uneven: the tree and source index identify many subsystems, but only sampled files support the shown relationships; unsampled example wiring is therefore omitted.
Main entry points: src/App.tsx Shop interface · src/App.tsx Curriculum app · repository.ts Workshop repositories · engine.ts Policy engine
Components 22
Learning curriculum
- Curriculum app
curriculum/src/App.tsx - Course home
curriculum/src/Home.tsx - Lessons and labs
curriculum/src/week3/day13-layered-architecture - Backend topics
curriculum/src/week4/day17-microservices
Backend workshops
- Workshop API
backend-labs/express-layered-workshops/src/app.ts - Resource controllers
backend-labs/express-layered-workshops/src/attendees/controller.ts - Registration rules
backend-labs/express-layered-workshops/src/registrations/service.ts - Workshop repositories
backend-labs/express-layered-workshops/src/attendees/repository.ts - Workshop database
backend-labs/express-layered-workshops/src/db/client.ts - Error mapping
backend-labs/express-layered-workshops/src/lib/errors.ts
Service examples
- Auth reference API
backend-lecture-code/day16-auth-security/auth-reference/src/server.ts - Policy engine
backend-lecture-code/day16-auth-security/auth-reference/src/policy/engine.ts - Policy rules
backend-lecture-code/day16-auth-security/auth-reference/src/policy/policies.ts - Cinema bookings
backend-labs/express-microservices-cinema/src/services/bookings/booking.controller.ts - Order performance demo
backend-lecture-code/monolithic/src/modules/orders/controller.ts
Shop demonstration
- Shop database pool
backend-lecture-code/monolithic/src/db/pool.ts - Shop interface
backend-lecture-code/monolithic-frontend/src/App.tsx - Products page
backend-lecture-code/monolithic-frontend/src/pages/ProductsPage.tsx - Inventory page
backend-lecture-code/monolithic-frontend/src/pages/InventoryPage.tsx - Orders page
backend-lecture-code/monolithic-frontend/src/pages/OrdersPage.tsx - AI assistant
backend-lecture-code/monolithic-frontend/src/components/AskAI.tsx
Other components
- Learner
Connections 16
- Learner → Curriculum app: browses
- Curriculum app → Course home: routes to
curriculum/src/App.tsx - Curriculum app → Lessons and labs: routes to
curriculum/src/App.tsx - Curriculum app → Backend topics: routes to
curriculum/src/App.tsx - Resource controllers → Workshop repositories: calls
backend-labs/express-layered-workshops/src/attendees/controller.ts - Workshop repositories → Workshop database: uses
backend-labs/express-layered-workshops/src/attendees/repository.ts - Registration rules → Workshop repositories: uses
backend-labs/express-layered-workshops/src/registrations/service.ts - Resource controllers → Error mapping: maps errors
- Auth reference API → Policy engine
- Policy engine → Policy rules: evaluates
backend-lecture-code/day16-auth-security/auth-reference/src/policy/engine.ts - Cinema bookings → Policy engine
- Shop interface → Products page: renders
backend-lecture-code/monolithic-frontend/src/App.tsx - Shop interface → Inventory page: renders
backend-lecture-code/monolithic-frontend/src/App.tsx - Shop interface → Orders page: renders
backend-lecture-code/monolithic-frontend/src/App.tsx - Shop interface → AI assistant: renders
backend-lecture-code/monolithic-frontend/src/App.tsx - Order performance demo → Shop database pool: queries
backend-lecture-code/monolithic/src/modules/orders/controller.ts