How lucassantss/coderise-server-02 works
CodeRise is an admin and user dashboard backed by an API for configuring and monitoring e-commerce, chatbot, logistics, synchronization, and webhook integrations. The main workflow is to configure a store or integration, receive or initiate catalog/order activity, process it through platform adapters, and inspect webhook or sync results in the dashboard. The graph follows documented router dispatches and indexed imports; unsampled subsystems are represented by their exact directories where their precise calls are not shown.
Main entry points: index.js API router · webhook-receiver.js Webhook processing · ecommerce E-commerce adapters · db.js Application database
Components 23
Dashboard UI
- Dashboard pages
src/pages/dashboard - Admin pages
src/pages/admin - Route application
src/App.tsx - API client
src/services/api.ts - Auth state
src/store/auth.ts
API and Accounts
- API router
api/index.js - Authentication
api/_lib/auth.js - User management
api/users.js - Integration settings
api/integrations.js - Webhook registration
api/_lib/register-webhook.js
Commerce and Events
- Catalog synchronization
api/_lib/sync-catalog.js - Catalog polling
api/_lib/poll-catalog.js - Webhook processing
api/_lib/webhook-receiver.js - Sync rules
api/sync-rules.js
External Integrations
- E-commerce adapters
api/_lib/ecommerce - Suri chatbot
api/_lib/chatbot/suri - Logistics quoting
api/_lib/logistics-quote.js
Persistence and Alerts
- Application database
api/_lib/db.js - Integration error alerts
api/_lib/error-webhook.js
Other components
- Dashboard user
- Commerce platforms
- Suri service
- Correios carrier
Connections 26
- Dashboard user → Route application: uses
- Route application → Dashboard pages: routes to
src/App.tsx - Route application → Admin pages: routes to
src/App.tsx - Dashboard pages → API client: requests data
src/pages/dashboard/Webhooks.tsx - Admin pages → API client: requests data
src/pages/admin/Clients.tsx - API client → Auth state: reads credentials
src/services/api.ts - API router → Authentication: dispatches
api/index.js - API router → User management: dispatches
api/index.js - API router → Integration settings: dispatches
api/index.js - API router → Webhook processing: dispatches
api/index.js - API router → Webhook registration: dispatches
api/index.js - API router → Catalog synchronization: dispatches
api/index.js - API router → Sync rules: dispatches
api/index.js - Webhook processing → Application database: records events
api/_lib/webhook-receiver.js - Webhook processing → Integration error alerts: reports failures
api/_lib/webhook-receiver.js - Webhook processing → Suri chatbot: processes Suri events
api/_lib/webhook-receiver.js - Webhook processing → E-commerce adapters: processes store events
api/_lib/webhook-receiver.js - Catalog synchronization → Application database: reads configuration
api/_lib/sync-catalog.js - Catalog synchronization → E-commerce adapters: syncs catalog
api/_lib/sync-catalog.js - Catalog polling → E-commerce adapters: polls catalog
- Webhook registration → Application database: stores registrations
api/_lib/register-webhook.js - Integration error alerts → Application database: stores alerts
api/_lib/error-webhook.js - Integration error alerts → Suri service: notifies service
- E-commerce adapters → Commerce platforms: calls APIs
- Suri chatbot → Suri service: calls API
- Logistics quoting → Correios carrier: requests quotes