How telugujayaprakash/frontpocket works
FrontPocket is a creator profile and link-in-bio platform: visitors browse and interact with public creator pages, while creators register, manage their profile and content, and review analytics and account settings. The browser app routes public and protected experiences and sends API requests; server routes dispatch to domain controllers, which access PostgreSQL and supporting services. The graph preserves major dashboard capabilities identified in the route map and source index. Evidence is limited to the supplied excerpts and index, so unsampled subsystem wiring is not expanded.
Main entry points: app.js API application · settingsController.js Account security · AppRoutes.jsx App routes · bannerController.js Featured banners
Components 31
Creator and visitor app
- App shell
client/src/App.jsx - App routes
client/src/routes/AppRoutes.jsx - Registration and login
client/src/pages/auth - Dashboard
client/src/components/dashboard/DashboardLayout.jsx - Profile editor
client/src/components/profile-editor - Content manager
client/src/pages/content/ContentPage.jsx - Analytics dashboard
client/src/pages/analytics/AnalyticsPage.jsx - Account settings
client/src/pages/settings/SettingsPage.jsx - Public profile
client/src/components/profile/UniversalProfileRenderer.jsx - Auth state
client/src/redux/auth/authSlice.js - Auth requests
client/src/redux/auth/authThunk.js - HTTP client
client/src/api/axios.js
Backend API domains
- API application
server/src/app.js - Authentication
server/src/controllers/authController.js - Profile management
server/src/controllers/profileController.js - Content and links
server/src/controllers/contentController.js - Featured banners
server/src/controllers/bannerController.js - Public profiles
server/src/controllers/publicController.js - Analytics
server/src/controllers/analyticsController.js - Account security
server/src/controllers/settingsController.js - Auth guard
server/src/middleware/authMiddleware.js
Persistence and services
- PostgreSQL
server/src/config/db.js - User records
server/src/models/userModel.js - Cache service
server/src/services/cacheService.js - Redis and fallback
server/src/utils/redisClient.js
External services
- Media uploads
server/src/services/media/cloudinary.service.js - Cloudinary
- Email delivery
server/src/utils/mailer.js - Email provider
Other components
- Profile visitor
- Creator
Connections 41
- Creator → App routes: opens app
client/src/routes/AppRoutes.jsx - Profile visitor → App routes: opens profile
client/src/routes/AppRoutes.jsx - App shell → App routes: renders
client/src/App.jsx - App routes → Registration and login: routes auth
client/src/routes/AppRoutes.jsx - App routes → Dashboard: routes dashboard
client/src/routes/AppRoutes.jsx - App routes → Public profile: routes profile
client/src/routes/AppRoutes.jsx - Creator → Registration and login: registers
- Registration and login → Auth requests: dispatches auth
client/src/redux/auth/authThunk.js - Auth requests → HTTP client: sends requests
client/src/redux/auth/authThunk.js - App shell → Auth requests: checks session
client/src/App.jsx - Creator → Profile editor: edits profile
- Creator → Content manager: manages content
- Creator → Analytics dashboard: reviews metrics
- Creator → Account settings: manages account
- Profile visitor → Public profile: views profile
- API application → Authentication: mounts routes
server/src/app.js - API application → Profile management: mounts routes
server/src/app.js - API application → Content and links: mounts routes
server/src/app.js - API application → Featured banners: mounts routes
server/src/app.js - API application → Public profiles: mounts routes
server/src/app.js - API application → Analytics: mounts routes
server/src/app.js - API application → Account security: mounts routes
server/src/app.js - HTTP client → API application: calls API
- Account security → PostgreSQL: queries
server/src/controllers/settingsController.js - Account security → User records: updates security
server/src/controllers/settingsController.js - Account security → Cache service: invalidates profile
server/src/controllers/settingsController.js - Account security → Email delivery: sends OTP
server/src/controllers/settingsController.js - Account security → Email provider: delivers mail
- Profile management → PostgreSQL: queries profile
server/src/controllers/profileController.js - Profile management → Media uploads: uploads media
server/src/controllers/profileController.js - Profile management → Cache service: invalidates profile
server/src/controllers/profileController.js - Featured banners → PostgreSQL: queries banners
server/src/controllers/bannerController.js - Featured banners → Media uploads: uploads banners
server/src/controllers/bannerController.js - Featured banners → Cache service: invalidates profile
server/src/controllers/bannerController.js - Featured banners → Redis and fallback: deduplicates clicks
server/src/controllers/bannerController.js - Public profiles → PostgreSQL: reads profiles
server/src/controllers/publicController.js - Public profiles → Cache service: uses cache
server/src/controllers/publicController.js - Auth guard → User records: checks user
server/src/middleware/authMiddleware.js - User records → PostgreSQL: queries database
server/src/models/userModel.js - Cache service → Redis and fallback: uses Redis
server/src/services/cacheService.js - Media uploads → Cloudinary: stores media