One workspace for your coding progress and your job search.
Track activity across coding platforms, manage job applications, and capture applications automatically with a Chrome extension and optional Gmail import.
Features · Architecture · Quick start · Android · Integrations · API · Limitations
Developers juggle two parallel workflows: staying sharp on coding platforms and managing a job search spread across emails, tabs, and spreadsheets. DevTrack puts both in one dashboard.
- See your progress. Solved counts, streaks, active days, and a six-month heatmap.
- Track every application. Status, notes, links, and the exact resume filename you sent.
- Enter less by hand. Capture applications from the browser or import confirmations from Gmail, always with human review.
The web dashboard and Android shell share the same React/Vite client. The Chrome extension is a separate Manifest V3 client. All three communicate with one Express API:
- Clients → API: The web and Android clients make JSON requests with HTTP-only session cookies. The extension uses a separate, capture-only bearer token; it never receives the dashboard cookies.
- API → data: Express routes hand work to controllers and services. Mongoose stores users, coding profiles, applications, refresh sessions, Gmail connections, and extension pairing/device records in MongoDB.
- API → external services: The API fetches public coding-platform stats, optionally uses Gmail read-only access to import new application confirmations, supports GitHub OAuth, and uses SMTP for OTP and password-reset email.
The Gmail sync worker runs inside the API process. No separate worker service or job queue is included.
- Save coding profile handles and links across supported platforms.
- Live statistics and recent accepted submissions for Codeforces, LeetCode, and AtCoder.
- Aggregated solved counts, streaks, active days, monthly activity, and heatmap, with on-demand refresh.
- Create, edit, search, filter, and delete applications.
- Six statuses: Applied, Screening, Interview, Offer, Rejected, Withdrawn.
- Company, role, date, job URL, notes, and resume filename per application.
- Detects page title, company/role hints, URL, and your selected resume filename.
- You review and edit everything before saving.
- Pairs with a one-time code and a scoped token, never your dashboard session cookie.
- Read-only Gmail scope; imports only new confirmation emails after you connect (no backfill).
- Merges with an extension capture only when company, role, and date match one record unambiguously.
- Uncertain fields are flagged for review rather than guessed.
| Area | Approach |
|---|---|
| Sessions | HTTP-only access and refresh cookies, rotating refresh sessions, server-side revocation |
| Sign-in | Email OTP, password reset, optional GitHub OAuth |
| Extension | One-time pairing code (10 min expiry); token stored hashed, expires after 180 days, revocable |
| Resumes | Filename and optional URL only; files are never uploaded or stored |
| Gmail | Read-only scope; resume usage is never inferred from email |
| Layer | Technology |
|---|---|
| Frontend | React 19, React Router 7, Vite 8 |
| Backend | Node.js, Express 5 |
| Database | MongoDB, Mongoose 9 |
| Integrations | Gmail API, Nodemailer, GitHub OAuth |
| Mobile | Capacitor 8, Android Studio, Java 21 / Gradle |
| Browser | Chrome Extension Manifest V3 |
DEVTRACK/
├── android/ Capacitor Android project
├── client/ React + Vite app (components, pages, routes, services)
├── server/ Express API (config, controllers, middleware, models, routes, services)
├── extension/ Chrome Manifest V3 extension
├── architecture.svg System architecture diagram
├── capacitor.config.json Capacitor app configuration
└── package.json Root build and Android scripts
Prerequisites: Node.js 22.12 or later, npm, and MongoDB (local or Atlas). Vite 8 requires a current Node.js release.
1. Install dependencies for the root Capacitor tools, frontend, and API:
npm install
npm --prefix client install
npm --prefix server install2. Configure the API. Copy the example environment file:
Copy-Item server/.env.example server/.envSet at least the following values in server/.env:
PORT=5000
CLIENT_URL=http://localhost:5173
MONGO_URI=mongodb://127.0.0.1:27017/devtrack
AUTH_SECRET=<long-random-secret>Generate a secret locally:
node -e "console.log(require('crypto').randomBytes(48).toString('hex'))"MONGO_URI defaults to the local MongoDB URL above. Set a unique AUTH_SECRET for production; the development fallback is rejected in production. GitHub OAuth, Gmail import, and SMTP are optional. Never commit server/.env, OAuth secrets, SMTP passwords, or the Gmail token-encryption key.
3. Start the API and frontend in separate terminals:
npm --prefix server run devnpm --prefix client run devThe API is available at http://localhost:5000 (GET /api/health is the health check), and Vite prints the frontend URL when it starts. In local development without SMTP configuration, OTP codes and password-reset links are printed in the API terminal.
The Android app is a Capacitor shell around the same React frontend bundle (client/dist). The native client defaults to http://10.0.2.2:5000/api, which reaches the host machine from the Android emulator. A physical device needs an API URL reachable over the local network or a deployed HTTPS API.
Requirements: Android Studio, Android SDK, a compatible JDK, and an emulator or USB-debugging device. Start the API before using the app.
npm run android:sync # build the web client and sync Capacitor assets
npm run android:run # sync and launch on a connected device/emulator
npm run android # sync and open the project in Android StudioAfter frontend changes, run npm run android:sync before launching from Android Studio. For a physical device, configure VITE_API_URL to point to a server reachable by that device before building.
Troubleshooting
| Symptom | Fix |
|---|---|
| Network error on the dashboard | Check http://localhost:5000/api/health and confirm VITE_API_URL points to an address reachable from the Android device. |
| Old UI after changes | Run npm run android:sync; Android Studio does not rebuild the Vite bundle. |
| Gradle Java error | Select an installed JDK supported by the Android Gradle Plugin in Android Studio's Gradle JDK setting. |
| Device not detected | Enable USB debugging, accept the RSA prompt, and check adb devices. |
Production build
Set VITE_API_URL in client/.env.production:
VITE_API_URL=https://your-api-domain.example/apiThen run npm run android:sync and build in Android Studio via Build → Generate Signed Bundle / APK. The backend must allow the https://localhost app origin and be configured for secure cookies. Keep environment files out of version control and never ship a development build as a release.
All integrations are optional. Email OTP sign-in works without any of them.
GitHub OAuth
Register http://localhost:5000/api/auth/github/callback as the callback URL, then set GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET, and GITHUB_CALLBACK_URL in server/.env. Use your deployed callback in production.
Gmail application import
-
Create a Google Cloud project and enable the Gmail API.
-
Configure an OAuth web client and consent screen.
-
Register
http://localhost:5000/api/integrations/gmail/callbackas the redirect URI. -
Set
GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET, andGOOGLE_REDIRECT_URI. -
Set
GOOGLE_TOKEN_ENCRYPTION_KEY(64 hex characters):node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
While the consent screen is in Testing, add your account as a test user; refresh tokens may expire after seven days. Public use may require Google OAuth verification. The sync worker runs inside the API process, so the server must stay running.
Chrome extension
- Sign in to DevTrack and open Applications → DevTrack browser extension → Pair extension; copy the code.
- In Chrome, go to
chrome://extensions, enable Developer mode, click Load unpacked, and selectextension/. - Enter the code in the popup and keep the API URL
http://localhost:5000/api(or your HTTPS URL). - On an application page, choose your resume file, open the extension, review, and save.
See the extension guide for details.
| Location | Command | Purpose |
|---|---|---|
client/ |
npm run dev / npm run build |
Dev server / production build |
server/ |
npm run dev / npm test |
API with Nodemon / test suite |
| Root | npm run build |
Build the frontend |
| Root | npm run android:sync |
Build the frontend and sync Android assets |
| Root | npm run android:run |
Sync and run on a connected Android device/emulator |
| Root | npm run android |
Sync and open the Android project |
All routes are prefixed with /api.
| Area | Routes | Description |
|---|---|---|
| Health | GET /health |
Health check |
| Auth | /auth/* |
Signup, OTP login, refresh, logout, password reset, GitHub OAuth, profile |
| Dashboard | /dashboard |
Profiles, aggregates, activity calendar, recent submissions |
| Applications | /dashboard/applications |
Create, list, update, delete |
| Gmail | /integrations/gmail/* |
Connect, status, sync, callback, disconnect |
| Extension | /extension/* |
Pairing, reviewed capture, devices, revocation |
- Live statistics cover Codeforces, LeetCode, and AtCoder; other supported profiles provide links.
- DSA sheets are a catalog; per-problem completion tracking is not implemented.
- The Chrome extension is an unpacked development build, not published to the Chrome Web Store.
- Gmail parsing is best-effort, and ambiguous matches are left for review.
- Gmail background sync requires the API process to keep running.
No license file is included yet. Add a LICENSE before granting reuse or distribution rights.