How keepudihemanth/subtracker works
SubTracker lets users register or log in, then manage subscriptions and review spending and upcoming renewals in a dashboard. The React app routes users through authentication and subscription screens; its API calls reach Express routes, which authenticate requests and read or write MongoDB models. The backend also exposes a reminder-email endpoint. The README documents expense insights and reminders, though the sampled code does not show a separate analytics stage. Frontend-to-backend HTTP links follow the documented API behavior; unsampled UI details are represented by their existing component paths.
Main entry points: server.js Reminder endpoint · App.jsx App routing · Dashboard.jsx Subscription dashboard · subscriptions.js Subscription routes
Components 19
Web app
- App routing
frontend/src/App.jsx - Login and register
frontend/src/components - Auth API client
frontend/src/api/auth.js - Subscription dashboard
frontend/src/components/Dashboard.jsx - Subscription form
frontend/src/components/SubscriptionForm.jsx - Subscription list
frontend/src/components/SubscriptionList.jsx - Landing and about
frontend/src/components - Subscription API client
frontend/src/api/subscriptions.js
Backend API
- Express server
backend/server.js - Authentication routes
backend/routes/auth.js - Subscription routes
backend/routes/subscriptions.js - Reminder endpoint
backend/server.js - Email delivery
backend/utils/mailer.js
Persistence and security
- JWT middleware
backend/middleware/auth.js - User records
backend/models/User.js - Subscription records
backend/models/Subscriptions.js
Other components
- User
- MongoDB
- Gmail SMTP
Connections 25
- User → App routing: uses
README.md - App routing → Login and register: routes to
frontend/src/App.jsx - App routing → Subscription dashboard: routes to
frontend/src/App.jsx - App routing → Landing and about: renders
frontend/src/App.jsx - Login and register → Auth API client: submits credentials
frontend/src/components/AuthPage.jsx - Login and register → App routing: returns auth state
frontend/src/App.jsx - Auth API client → Authentication routes: HTTP requests
frontend/src/api/auth.js - Subscription dashboard → Subscription form: renders
frontend/src/components/Dashboard.jsx - Subscription dashboard → Subscription list: renders
frontend/src/components/Dashboard.jsx - Subscription dashboard → Subscription API client: manages subscriptions
- Subscription API client → Subscription routes: HTTP requests
- Express server → Authentication routes: mounts routes
backend/server.js - Express server → Subscription routes: mounts routes
backend/server.js - Authentication routes → User records: reads and writes
backend/routes/auth.js - Subscription routes → JWT middleware: protects routes
backend/routes/subscriptions.js - Subscription routes → Subscription records: reads and writes
backend/routes/subscriptions.js - User records → MongoDB: persists in
- Subscription records → MongoDB: persists in
- Express server → Reminder endpoint: registers endpoint
backend/server.js - Reminder endpoint → JWT middleware: authenticates with
backend/server.js - Reminder endpoint → Subscription records: loads subscription
backend/server.js - Reminder endpoint → User records: loads user
backend/server.js - Reminder endpoint → Email delivery: sends reminder
backend/server.js - Email delivery → Gmail SMTP: sends email
backend/utils/mailer.js - User → Subscription form: enters details