How keshav-kale/wanderlust-mega-project works
Wanderlust is a travel-blog application: visitors browse featured, latest, category, and individual posts, while contributors create posts and users can sign in or register. The backend exposes post and authentication routes, persists users and posts in MongoDB, and optionally caches post results in Redis. The README also describes deployment tooling, but that is not part of the runtime architecture shown here. Frontend-to-backend wiring is not visible in the excerpts, so those relationships are omitted or marked unverified.
Main entry points: App.tsx Application shell · server.js HTTP server · auth-controller.js Account workflows · posts.js Post routes
Components 21
Web experience
- Application shell
frontend/src/App.tsx - Blog feed
frontend/src/components/blog-feed.tsx - Post pages
frontend/src/pages - Sign-in and signup
frontend/src/pages - Post composition
frontend/src/pages/add-blog.tsx
API and workflows
- HTTP server
backend/server.js - Post routes
backend/routes/posts.js - Post operations
backend/controllers/posts-controller.js - Auth routes
backend/routes/auth.js - Post cache middleware
backend/utils/middleware.js
Persistence and cache
- Database connection
backend/config/db.js - Post model
backend/models/post.js - Redis connection
backend/services/redis.js - Post cache operations
backend/utils/cache-posts.js
Identity integrations
- Account workflows
backend/controllers/auth-controller.js - User model
backend/models/user.js
Other components
- Visitor or contributor
- MongoDB
- Redis
- Google OAuth
- GitHub OAuth
Connections 22
- Visitor or contributor → Application shell: uses
- Application shell → Blog feed: presents
- Application shell → Post pages: presents
- Application shell → Sign-in and signup: presents
- Application shell → Post composition: presents
- Visitor or contributor → HTTP server: requests
- HTTP server → Post routes: mounts
backend/server.js - HTTP server → Auth routes: mounts
backend/server.js - HTTP server → Database connection: connects
backend/server.js - HTTP server → Redis connection: connects
backend/server.js - Post routes → Post operations: dispatches
backend/routes/posts.js - Post routes → Post cache middleware: applies
backend/routes/posts.js - Auth routes → Account workflows: dispatches
backend/routes/auth.js - Post operations → Post model: queries
backend/controllers/posts-controller.js - Post operations → Post cache operations: reads and invalidates
backend/controllers/posts-controller.js - Post cache middleware → Post cache operations: reads
backend/utils/middleware.js - Post cache operations → Redis connection: uses client
backend/utils/cache-posts.js - Database connection → MongoDB: connects
backend/config/db.js - Redis connection → Redis: connects
backend/services/redis.js - Account workflows → User model: queries
backend/controllers/auth-controller.js - Account workflows → Google OAuth: exchanges tokens
backend/controllers/auth-controller.js - Account workflows → GitHub OAuth: exchanges tokens
backend/controllers/auth-controller.js