How prajwal0426/project_v works
VERTEX is a learning-and-earning platform: users and companies register or sign in, users discover and submit projects, companies review submissions, and users track rankings and wallet activity. Administrators manage accounts and audit actions. The graph includes the React client, Express API, PostgreSQL-backed domain services, and documented PayPal integration. The source excerpts verify key auth, project, wallet, and admin operations; several page, route, and controller implementations were not sampled, so those links are omitted or marked unverified.
Main entry points: api.js API client · app.js Express API · db.js PostgreSQL · auth.routes.js Auth routes
Components 30
React client
- Web application
client/src/App.jsx - Auth state
client/src/context/AuthContext.jsx - API client
client/src/services/api.js - App data
client/src/context/AppDataContext.jsx - Project pages
client/src/pages/ProjectsPage.jsx - Dashboards
client/src/pages/UserDashboard.jsx - Rankings page
client/src/pages/RankingsPage.jsx - Wallet page
client/src/pages/WalletPage.jsx - Admin pages
client/src/pages/AdminManagementPage.jsx
API and access
- Express API
server/src/app.js - Auth routes
server/src/routes/auth.routes.js - Admin routes
server/src/routes/admin.routes.js - Access control
server/src/middleware/auth.middleware.js - ID uploads
server/src/middleware/upload.middleware.js
Learning and rankings
- Project routes
server/src/routes/project.routes.js - Project workflow
server/src/controllers/project.controller.js - Ranking API
server/src/controllers/ranking.controller.js - Monthly rankings
server/src/services/ranking.service.js - Dashboard data
server/src/controllers/dashboard.controller.js
Wallet and payments
- Wallet operations
server/src/controllers/wallet.controller.js - Coin conversion
server/src/services/wallet.service.js - PayPal adapter
server/src/services/paypal.service.js - PayPal service
server/src/services/paypal.service.js
Platform operations
- PostgreSQL
server/src/config/db.js - Schema setup
server/src/services/migration.service.js - Account administration
server/src/controllers/admin.controller.js - Legal consent
server/src/services/legal.service.js
Other components
- User
- Company
- Administrator
Connections 31
- User → Web application: uses
- Company → Web application: uses
- Administrator → Web application: uses
- Web application → Auth state: hosts
- Auth state → API client: authenticates via
client/src/context/AuthContext.jsx - App data → API client: loads data via
client/src/context/AppDataContext.jsx - Project pages → API client: requests projects
- Dashboards → API client: requests dashboard
- Rankings page → API client: requests rankings
- Wallet page → API client: requests wallet
- Admin pages → API client: requests admin
- API client → Express API: HTTP requests
- Express API → PostgreSQL: connects
- Express API → Schema setup: runs at startup
server/src/app.js - Express API → Monthly rankings: starts schedule
server/src/app.js - Express API → Auth routes: mounts routes
server/src/app.js - Auth routes → Access control: guards routes
server/src/routes/auth.routes.js - Auth routes → ID uploads: handles ID files
server/src/routes/auth.routes.js - Auth routes → Legal consent: consent handled by
- Express API → Admin routes: mounts via router
- Admin routes → Account administration: dispatches
server/src/routes/admin.routes.js - Admin routes → Access control: guards routes
server/src/routes/admin.routes.js - Project routes → Project workflow: dispatches
server/src/routes/project.routes.js - Project workflow → PostgreSQL: reads and writes
server/src/controllers/project.controller.js - Account administration → PostgreSQL: reads and writes
server/src/controllers/admin.controller.js - Monthly rankings → PostgreSQL: updates rankings
server/src/services/ranking.service.js - Dashboard data → PostgreSQL: queries data
server/src/controllers/dashboard.controller.js - Wallet operations → PostgreSQL: reads and writes
server/src/controllers/wallet.controller.js - Wallet operations → Coin conversion: converts coins
server/src/controllers/wallet.controller.js - Wallet operations → PayPal service: requests payments
server/src/controllers/wallet.controller.js - PayPal service → PayPal adapter: connects optionally