How shahadat-gith/lifebookz works
LifeBookz is a multi-portal platform for reading and publishing personal stories, booking expert consultations, and operating the service. Readers browse stories and authors; authors create and manage story content; consultation flows connect clients and experts to checkout and live sessions. Admin and developer portals support operations. The sampled backend shows API setup, story routing, authentication, and parts of author and consultation handling. Many portal-to-API and unsampled payment/session connections are not shown, so those links are omitted or marked unverified.
Main entry points: author.service.js Author accounts · App.jsx Client portal · story.routes.js Story routes · index.js API route registry
Components 23
User portals
- Client portal
web/client/src/App.jsx - Author portal
web/author/src/App.jsx - Expert portal
web/expert/src/App.jsx - Admin portal
web/admin/src/App.jsx - Developer portal
web/developer/src/App.jsx - Payment portal
web/payment/src/App.jsx - Session portal
web/session/src/App.jsx
API routing
- API application
backend/src/app.js - API route registry
backend/src/routes/index.js - Story routes
backend/src/routes/story.routes.js - Authentication
backend/src/middleware/auth.js
Domain services
- Story handlers
backend/src/controllers/story.controller.js - Consult handlers
backend/src/controllers/consultations.controller.js - Consultation workflow
backend/src/services/consultations.service.js - Story workflow
backend/src/services/story.service.js - Author accounts
backend/src/services/author.service.js - Media uploads
backend/src/services/upload.service.js - Payment handlers
backend/src/controllers/payment.controller.js - Payment workflow
backend/src/services/payment.service.js
Data and integrations
- Author records
backend/src/models/Author.js - Story records
backend/src/models/Story.js
Other components
- Readers
- Authors
Connections 14
- Readers → Client portal: browses
web/client/src/App.jsx - Authors → Author portal: publishes stories
web/author/src/App.jsx - API application → API route registry: mounts routes
backend/src/app.js - API route registry → Story routes: registers routes
- Story routes → Authentication: gates access
backend/src/routes/story.routes.js - Story routes → Story handlers: dispatches requests
backend/src/routes/story.routes.js - Story handlers → Story workflow: calls
backend/src/controllers/story.controller.js - Consult handlers → Consultation workflow: calls
backend/src/controllers/consultations.controller.js - Author accounts → Author records: reads and writes
backend/src/services/author.service.js - Author accounts → Story records: reads stories
backend/src/services/author.service.js - Author accounts → Media uploads: uploads images
backend/src/services/author.service.js - Client portal → Payment portal: hands off checkout
web/client/src/App.jsx - Client portal → Session portal: hands off sessions
web/client/src/App.jsx - Payment handlers → Payment workflow: delegates payment