How nardoroman/chambalocal works
ChambaLocal is a local-services marketplace connecting workers and contractors. Users register or sign in with a role; contractors can publish jobs, workers can apply, and visitors can browse nearby jobs through the map experience. The sampled backend shows JWT-based identity and job handling backed by MongoDB models. The frontend also includes a dashboard and map explorer, but their data flows are not visible in the excerpts; those links are therefore omitted rather than inferred.
Main entry points: index.js Page routing · auth.store.js Session state · App.vue Vue application shell · auth.routes.js Auth routes
Components 21
Web client
- Vue application shell
frontend/src/App.vue - Navigation
frontend/src/components/Navbar.vue - Page routing
frontend/src/router/index.js - Marketplace landing
frontend/src/views/Home.vue - Sign-in page
frontend/src/views/Login.vue - Registration page
frontend/src/views/Register.vue - User dashboard
frontend/src/views/Dashboard.vue - Map explorer
frontend/src/views/MapExplorer.vue
Identity and access
- Session state
frontend/src/store/auth.store.js - HTTP client
frontend/src/utils/api.js - Auth routes
backend/src/routes/auth.routes.js - Auth operations
backend/src/controllers/auth.controller.js - JWT protection
backend/src/middlewares/auth.middleware.js
Job marketplace
- Job routes
backend/src/routes/job.routes.js - Job operations
backend/src/controllers/job.controller.js - API server entry
backend/src/index.js
Data models
- User records
backend/src/models/User.js - Job records
backend/src/models/Job.js - Review records
backend/src/models/Review.js - Database connection
backend/src/config/db.js
Other components
- Workers and contractors
Connections 25
- Workers and contractors → Vue application shell: uses
- Vue application shell → Navigation: renders
frontend/src/App.vue - Vue application shell → Session state: loads session
frontend/src/App.vue - Vue application shell → Page routing: renders routes
frontend/src/main.js - Page routing → Marketplace landing: routes to
frontend/src/router/index.js - Page routing → Sign-in page: routes to
frontend/src/router/index.js - Page routing → Registration page: routes to
frontend/src/router/index.js - Page routing → User dashboard: routes to
frontend/src/router/index.js - Page routing → Map explorer: routes to
frontend/src/router/index.js - Page routing → Session state: checks session
frontend/src/router/index.js - Navigation → Session state: reads session
frontend/src/components/Navbar.vue - Sign-in page → Session state: submits credentials
frontend/src/views/Login.vue - Registration page → Session state: submits registration
frontend/src/views/Register.vue - Session state → HTTP client: sends requests
frontend/src/store/auth.store.js - HTTP client → Auth routes: calls auth API
- API server entry → Auth routes: mounts routes
backend/src/index.js - API server entry → Job routes: mounts routes
backend/src/index.js - API server entry → Database connection: initializes connection
backend/src/index.js - Auth routes → Auth operations: dispatches
backend/src/routes/auth.routes.js - Auth routes → JWT protection: protects profile
backend/src/routes/auth.routes.js - Auth operations → User records: reads and writes
backend/src/controllers/auth.controller.js - JWT protection → User records: loads identity
backend/src/middlewares/auth.middleware.js - Job routes → Job operations: dispatches
backend/src/routes/job.routes.js - Job routes → JWT protection: protects actions
backend/src/routes/job.routes.js - Job operations → Job records: reads and writes
backend/src/controllers/job.controller.js