How abdalrahman-helal/swe works
This repository is a collection of Node.js learning projects rather than one unified product. The most developed application is FinalProject, an API for authentication and user/admin task and banner features; the Redis project is a separate product API with notifications. Natours is represented by several progressively expanded course versions. Edges are limited to relationships visible in excerpts or the source index; unsampled feature internals are retained as subsystem nodes where the tree supports them.
Main entry points: index.ts Route registry · auth.service.ts Authentication · auth.routes.ts Authentication routes · user.task.routes.ts User task routes
Components 30
FinalProject API
- Server startup
FinalProject/src/server.ts - Express app
FinalProject/src/app.ts - Route registry
FinalProject/src/routes/index.ts - Authentication routes
FinalProject/src/routes/auth.routes.ts - Authentication
FinalProject/src/services/auth.service.ts - JWT authorization
FinalProject/src/middlewares/auth.middleware.ts - Token signing
FinalProject/src/lib/jwt.ts - Google sign-in
FinalProject/src/lib/google.ts - User persistence
FinalProject/src/repositories/user.repository.ts - User task routes
FinalProject/src/routes/user.task.routes.ts - User task service
FinalProject/src/services/user.task.service.ts - Admin task features
FinalProject/src/routes/admin.task.routes.ts - Banner management
FinalProject/src/routes/admin.banner.route.ts
Redis Product API
- Server startup
Redis/RedisProject/src/server.ts - Express app
Redis/RedisProject/src/app.ts - Route registry
Redis/RedisProject/src/routes/index.ts - Product routes
Redis/RedisProject/src/routes/product.routes.ts - Product API
Redis/RedisProject/src/controllers/product.controller.ts - Product operations
Redis/RedisProject/src/services/product.service.ts - SQL connection pool
Redis/RedisProject/src/db/pool.ts - Redis client
Redis/RedisProject/src/redis/client.ts - Notifications
Redis/RedisProject/src/controllers/notification.controller.ts - Notification subscriber
Redis/RedisProject/src/subscribers/notification.subscriber.ts
Natours Course App
- Review routes
complete-node-bootcamp/4-natours/after-section-11/routes/reviewRoutes.js - Review access control
complete-node-bootcamp/4-natours/after-section-11/controllers/authController.js - Review operations
complete-node-bootcamp/4-natours/after-section-11/controllers/reviewController.js - Review model
complete-node-bootcamp/4-natours/after-section-11/models/reviewModel.js - CRUD handlers
complete-node-bootcamp/4-natours/after-section-11/controllers/handlerFactory.js
Other components
- API client
- PostgreSQL
Connections 29
- API client → Server startup: sends requests
- Server startup → Express app: starts
FinalProject/src/server.ts - Express app → Route registry: mounts
FinalProject/src/app.ts - Route registry → Authentication routes: registers
FinalProject/src/routes/index.ts - Route registry → User task routes: registers
FinalProject/src/routes/index.ts - Route registry → Admin task features: registers
FinalProject/src/routes/index.ts - Route registry → Banner management: registers
FinalProject/src/routes/index.ts - Authentication routes → Authentication: calls
FinalProject/src/routes/auth.routes.ts - Authentication routes → JWT authorization: uses
FinalProject/src/routes/auth.routes.ts - Authentication → User persistence: calls
FinalProject/src/services/auth.service.ts - Authentication → Token signing: signs tokens
FinalProject/src/services/auth.service.ts - Authentication → Google sign-in: delegates sign-in
FinalProject/src/services/auth.service.ts - User persistence → PostgreSQL: queries
- JWT authorization → Token signing: verifies tokens
FinalProject/src/middlewares/auth.middleware.ts - User task routes → JWT authorization: protects routes
FinalProject/src/routes/user.task.routes.ts - User task routes → User task service: calls
FinalProject/src/routes/user.task.routes.ts - API client → Server startup: sends requests
- Server startup → Express app: starts
Redis/RedisProject/src/server.ts - Express app → Route registry: mounts
Redis/RedisProject/src/app.ts - Route registry → Product routes: registers
- Product routes → Product API: routes requests
Redis/RedisProject/src/routes/product.routes.ts - Product API → Product operations: calls
Redis/RedisProject/src/controllers/product.controller.ts - Product operations → SQL connection pool: queries
Redis/RedisProject/src/services/product.service.ts - Product operations → Redis client: uses cache
Redis/RedisProject/src/services/product.service.ts - Notifications → Notification subscriber: uses
Redis/RedisProject/src/controllers/notification.controller.ts - Review routes → Review access control: protects routes
complete-node-bootcamp/4-natours/after-section-11/routes/reviewRoutes.js - Review routes → Review operations: dispatches
complete-node-bootcamp/4-natours/after-section-11/routes/reviewRoutes.js - Review operations → Review model: uses model
complete-node-bootcamp/4-natours/after-section-11/controllers/reviewController.js - Review operations → CRUD handlers: delegates CRUD
complete-node-bootcamp/4-natours/after-section-11/controllers/reviewController.js