How jsepulvedai1/clanship_backend works
This repository is the Django backend for a services marketplace connecting customers with professionals. Its main workflow covers account and professional-profile management, service requests and job lifecycle, customer–professional chat, and paid subscriptions. GraphQL schemas expose the domain APIs; supporting capabilities include real-time messaging, push notifications, welcome email, and Mercado Pago checkout. Evidence is limited to the provided excerpts, source index, and tree; the README is empty, so unsampled capability links are omitted where their callers are not shown.
Main entry points: core/schema.py GraphQL API · payments/schema.py Payment operations · consumers.py Real-time chat · tasks.py Async notifications
Components 18
API and application
- GraphQL API
core/schema.py - HTTP endpoints
core/views.py
Marketplace domain
- Accounts and profiles
users/models.py - Account operations
users/schema.py - Jobs and requests
jobs/models.py - Job operations
jobs/schema.py
Messaging and notifications
- Chat records
chat/models.py - Real-time chat
chat/consumers.py - Async notifications
core/tasks.py - Push delivery
core/firebase.py - Welcome email
users/welcome_emails.py
Subscriptions and payments
- Payment operations
payments/schema.py - Checkout service
payments/services.py - Subscription orders
payments/models.py
Other components
- Customer or professional
- Mercado Pago
- Resend email
- Channel layer
Connections 19
- Customer or professional → GraphQL API: submits operations
core/schema.py - GraphQL API → Account operations: dispatches schema
core/schema.py - GraphQL API → Job operations: dispatches schema
core/schema.py - GraphQL API → Payment operations: dispatches schema
core/schema.py - Account operations → Accounts and profiles: uses profiles
users/schema.py - Job operations → Jobs and requests: reads and updates
jobs/schema.py - Real-time chat → Chat records: saves messages
chat/consumers.py - Real-time chat → Jobs and requests: creates jobs
chat/consumers.py - Chat records → Async notifications: enqueues notifications
chat/models.py - Async notifications → Push delivery: sends pushes
core/tasks.py - Async notifications → Channel layer: broadcasts events
core/tasks.py - Real-time chat → Channel layer: broadcasts messages
chat/consumers.py - Payment operations → Checkout service: uses checkout
- Checkout service → Subscription orders: creates and updates
payments/services.py - Checkout service → Mercado Pago: creates preferences
payments/services.py - Payment operations → Subscription orders: queries orders
- HTTP endpoints → Payment operations: routes payment views
- HTTP endpoints → Welcome email: sends welcome email
core/views.py - Welcome email → Resend email: sends email
users/welcome_emails.py