How navi126/wanderlust-mega-project works
Wanderlust is a MERN travel-blog application: visitors browse posts, while contributors can add content and users can sign in or sign up. The backend exposes post and authentication routes, persists domain records through Mongoose, and optionally caches selected post listings in Redis. The README also describes deployment tooling, but that is not part of the runtime product map. Frontend page-to-API wiring was not shown, so those links are marked unverified rather than inferred as calls.
Main entry points: App.tsx Web application · server.js HTTP server · blog-feed.tsx Blog feed · posts.js Post routes
Components 25
Web experience
- Web application
frontend/src/App.tsx - Browse posts
frontend/src/pages/home-page.tsx - Post views
frontend/src/pages/details-page.tsx - Post authoring
frontend/src/pages/add-blog.tsx - Sign in
frontend/src/pages/signin-page.tsx - Sign up
frontend/src/pages/signup-page.tsx - Blog feed
frontend/src/components/blog-feed.tsx - Post cards
frontend/src/components/post-card.tsx - Featured post
frontend/src/components/featured-post-card.tsx - Latest post
frontend/src/components/latest-post-card.tsx
Backend API
- Authentication routes
backend/routes/auth.js - Post routes
backend/routes/posts.js - Cache middleware
backend/utils/middleware.js - HTTP server
backend/server.js
Content and identity
- Authentication handlers
backend/controllers/auth-controller.js - Post handlers
backend/controllers/posts-controller.js - User model
backend/models/user.js - Post model
backend/models/post.js
Persistence and cache
- MongoDB
- Database connection
backend/config/db.js - Post cache helpers
backend/utils/cache-posts.js - Redis client
backend/services/redis.js - Redis
Other components
- Visitor or contributor
- OAuth providers
Connections 26
- Visitor or contributor → Web application: uses
- Web application → Browse posts: presents
- Web application → Post views: presents
- Web application → Post authoring: presents
- Web application → Sign in: presents
- Web application → Sign up: presents
- Browse posts → Blog feed: renders
- Blog feed → Post cards: renders
- Blog feed → Featured post: renders
- Blog feed → Latest post: renders
- Web application → HTTP server: requests API
- HTTP server → Post routes: mounts
backend/server.js - HTTP server → Authentication routes: mounts
backend/server.js - Post routes → Post handlers: dispatches
backend/routes/posts.js - Authentication routes → Authentication handlers: dispatches
backend/routes/auth.js - Post handlers → Post model: queries
backend/controllers/posts-controller.js - Authentication handlers → User model: queries
backend/controllers/auth-controller.js - HTTP server → Database connection: connects
backend/server.js - Database connection → MongoDB: connects
backend/config/db.js - Post routes → Cache middleware: registers
backend/routes/posts.js - Cache middleware → Post cache helpers: retrieves cache
backend/utils/middleware.js - Post handlers → Post cache helpers: stores or deletes
backend/controllers/posts-controller.js - Post cache helpers → Redis client: uses
backend/utils/cache-posts.js - Redis client → Redis: connects
- HTTP server → Redis client: connects
backend/server.js - Authentication handlers → OAuth providers: exchanges OAuth
backend/controllers/auth-controller.js