How atmikanayak/sidequest works
SideQuest is a student micro-task marketplace. A user signs in, discovers or posts tasks, negotiates participation, and progresses through orders; task posters manage applicants while freelancers complete work. The client also provides messaging, notifications, profiles, wallet views, and administrator tools. The server exposes Express routes whose controllers query PostgreSQL. The excerpts establish routing, task endpoints, authentication, and order/negotiation data access; several other feature areas are documented or represented in the tree but their detailed calls were not sampled.
Main entry points: App.jsx React application · tasks.js Task routes · orders.js Order routes · db.js PostgreSQL
Components 28
Marketplace client
- React application
client/src/App.jsx - Session and identity
client/src/context/AuthContext.jsx - User settings
client/src/context/SettingsContext.jsx
Task lifecycle
- Task discovery
client/src/pages/Home.jsx - Task search
client/src/pages/Search.jsx - Task posting
client/src/pages/tasks/PostTask.jsx - Task management
client/src/pages/tasks/MyTasks.jsx - Task details
client/src/pages/tasks/TaskDetail.jsx
Orders and exchange
- Offer negotiation
client/src/pages/orders/TaskPosterNegotiation.jsx - Order workflow
client/src/pages/orders/OrderDetail.jsx - Wallet
client/src/pages/wallet/Wallet.jsx
Community features
- Messaging
client/src/pages/MessageDetail.jsx - Notifications
client/src/pages/Notifications.jsx - Profiles
client/src/pages/profile/UserProfile.jsx - Administration
client/src/pages/admin/AdminTasks.jsx
API and persistence
- Express API
server/server.js - Task routes
server/routes/tasks.js - Task operations
server/controllers/taskController.js - Order routes
server/routes/orders.js - Order operations
server/controllers/orderController.js - Negotiation routes
server/routes/negotiations.js - Negotiation operations
server/controllers/negotiationController.js - Authentication routes
server/routes/auth.js - Authentication logic
server/controllers/authController.js - JWT access guard
server/middleware/authMiddleware.js - PostgreSQL
server/config/db.js - Database schema setup
server/sql/create_tables.js
Other components
- Student user
Connections 39
- Student user → React application: uses
- React application → Session and identity: checks session
client/src/App.jsx - React application → User settings: checks settings
client/src/App.jsx - React application → Task discovery: routes to
client/src/App.jsx - React application → Task search: routes to
client/src/App.jsx - React application → Task posting: routes to
client/src/App.jsx - React application → Task management: routes to
client/src/App.jsx - React application → Task details: routes to
client/src/App.jsx - React application → Offer negotiation: routes to
client/src/App.jsx - React application → Order workflow: routes to
client/src/App.jsx - React application → Wallet: routes to
client/src/App.jsx - React application → Messaging: routes to
client/src/App.jsx - React application → Notifications: routes to
client/src/App.jsx - React application → Profiles: routes to
client/src/App.jsx - React application → Administration: routes to
client/src/App.jsx - Session and identity → Authentication routes: verifies session
client/src/context/AuthContext.jsx - Express API → Task routes: mounts
server/server.js - Express API → Order routes: mounts
server/server.js - Express API → Negotiation routes: mounts
server/server.js - Express API → Authentication routes: mounts
server/server.js - Task routes → Task operations: dispatches
server/routes/tasks.js - Task routes → JWT access guard: protects endpoints
server/routes/tasks.js - Order routes → Order operations: dispatches
server/routes/orders.js - Order routes → JWT access guard: protects endpoints
server/routes/orders.js - Negotiation routes → Negotiation operations: dispatches
server/routes/negotiations.js - Negotiation routes → JWT access guard: protects endpoints
server/routes/negotiations.js - Authentication routes → Authentication logic: dispatches
server/routes/auth.js - Authentication routes → JWT access guard: protects endpoints
server/routes/auth.js - Task operations → PostgreSQL: queries
server/controllers/taskController.js - Order operations → PostgreSQL: queries and updates
server/controllers/orderController.js - Negotiation operations → PostgreSQL: queries
server/controllers/negotiationController.js - Authentication logic → PostgreSQL: queries
server/controllers/authController.js - Database schema setup → PostgreSQL: sets up tables
server/sql/create_tables.js - Task management → Task routes: requests task changes
- Offer negotiation → Negotiation routes: uses negotiation API
- Offer negotiation → Order routes: creates orders
- Order workflow → Order routes: uses order API
- Task discovery → Task routes: browses tasks
- Task posting → Task routes: submits tasks