How arben-djokovic/radnik-app-backend-api works
DoRadnika.me is a REST marketplace API for clients and local tradespeople. Its main workflow is: a client posts a job, workers apply, the client selects a worker, and the parties complete the job and review one another. The API also supports accounts, worker portfolios, notifications, moderation, and public discovery. The graph uses README-documented workflow links and source-index references; unsampled modules are represented only where the tree or index supports them, so some internal call details are omitted.
Main entry points: application.controller.js Application handling · app.js Express API · review.controller.js Review handling · job.controller.js Job handling
Components 27
Accounts and access
- Account routes
routes/user.routes.js - Account handling
controllers/user.controller.js - User records
models/user.model.js - Session and email helpers
config/index.js
Jobs and applications
- Job routes
routes/job.routes.js - Job handling
controllers/job.controller.js - Job records
models/job.model.js - Application routes
routes/application.routes.js - Application handling
controllers/application.controller.js - Application records
models/application.model.js - Category handling
controllers/category.controller.js - Category records
models/category.model.js
Reviews and portfolio
- Review routes
routes/review.routes.js - Review handling
controllers/review.controller.js - Review records
models/review.model.js - Rating calculations
config/rating.js - Work portfolio handling
controllers/workImage.controller.js - Portfolio records
models/workImage.model.js - Image processing and storage
config/images.js
Notifications and moderation
- Notification handling
controllers/notification.controller.js - Push and email delivery
config/index.js - Report moderation
controllers/report.controller.js - Report records
models/report.model.js - Expiry and reminders
config/expiry.js
Public discovery
- Public listings and metadata
controllers
Other components
- Client or worker
- Express API
app.js
Connections 31
- Client or worker → Express API: sends requests
README.md - Express API → Account routes: mounts routes
app.js - Express API → Job routes: mounts routes
app.js - Express API → Application routes: mounts routes
app.js - Express API → Review routes: mounts routes
app.js - Account routes → Account handling: dispatches to
routes/user.routes.js - Account handling → User records: uses records
controllers/user.controller.js - Account handling → Session and email helpers: uses helpers
controllers/user.controller.js - Job routes → Job handling: dispatches to
routes/job.routes.js - Job handling → Job records: reads and writes
controllers/job.controller.js - Job handling → Category records: looks up categories
controllers/job.controller.js - Job handling → Image processing and storage: uploads job images
controllers/job.controller.js - Application routes → Application handling: dispatches to
routes/application.routes.js - Application handling → Application records: reads and writes
controllers/application.controller.js - Application handling → Review records: creates reviews
controllers/application.controller.js - Application handling → Rating calculations: updates worker rating
controllers/application.controller.js - Application handling → Image processing and storage: uploads review images
controllers/application.controller.js - Application handling → Session and email helpers: notifies users
controllers/application.controller.js - Review routes → Review handling: dispatches to
routes/review.routes.js - Review handling → Review records: updates reviews
controllers/review.controller.js - Review handling → Rating calculations: adjusts worker rating
controllers/review.controller.js - Review handling → Image processing and storage: uploads review images
controllers/review.controller.js - Review handling → Session and email helpers: notifies reviewer
controllers/review.controller.js - Work portfolio handling → Portfolio records: stores portfolio entries
controllers/workImage.controller.js - Work portfolio handling → Image processing and storage: manages images
controllers/workImage.controller.js - Notification handling → Push and email delivery: uses delivery helpers
controllers/notification.controller.js - Report moderation → Report records: records reports
controllers/report.controller.js - Express API → Public listings and metadata: serves public endpoints
app.js - Client or worker → Job handling: posts and searches jobs
README.md - Client or worker → Application handling: applies and selects
README.md - Client or worker → Review handling: rates after jobs
README.md