How mbrekhof/xafn8ncrm works
n8nCRM is a proof-of-concept CRM that manages customers and orders in a DevExpress Blazor app, exposing authenticated OData for integrations. Its main business flow is an order being marked fulfilled and committed, which triggers an n8n webhook workflow that creates an invoice through the API. A separate scheduled workflow queries orders and emails a daily report. The graph includes domain data, persistence, API/security, and the documented automation branches; workflow internals and some server wiring are based on README descriptions rather than sampled workflow source.
Main entry points: Startup.cs OData API · daily-orders-report.json Daily report workflow · Order.cs Orders and items · order-fulfilled-create-invoice.json Invoice workflow
Components 18
CRM application
- Blazor CRM
n8nCRM/n8nCRM.Blazor.Server/Startup.cs
CRM domain
- Fulfillment hook
n8nCRM/n8nCRM.Module/Controllers/OrderFulfilledController.cs - Customers
n8nCRM/n8nCRM.Module/BusinessObjects/Customer.cs - Orders and items
n8nCRM/n8nCRM.Module/BusinessObjects/Order.cs - Order line items
n8nCRM/n8nCRM.Module/BusinessObjects/OrderItem.cs - Invoices
n8nCRM/n8nCRM.Module/BusinessObjects/Invoice.cs
API and security
- OData API
n8nCRM/n8nCRM.Blazor.Server/Startup.cs - Authentication API
n8nCRM/n8nCRM.Blazor.Server/API/Security/AuthenticationController.cs - JWT provider
n8nCRM/n8nCRM.Blazor.Server/API/Security/JwtTokenProviderService.cs - Reports API
n8nCRM/n8nCRM.Blazor.Server/API/Reports/ReportController.cs
n8n automation
- Invoice workflow
n8n/workflows/order-fulfilled-create-invoice.json - Daily report workflow
n8n/workflows/daily-orders-report.json
Persistence
- EF data context
n8nCRM/n8nCRM.Module/BusinessObjects/n8nCRMDbContext.cs - SQLite database
Other components
- CRM user
- Email service
- n8n workflow engine
- API client
Connections 18
- CRM user → Blazor CRM: uses
README.md - Blazor CRM → OData API: exposes
n8nCRM/n8nCRM.Blazor.Server/Startup.cs - API client → Authentication API: authenticates
README.md - API client → OData API: queries
README.md - Blazor CRM → Fulfillment hook: commits order
- Fulfillment hook → Invoice workflow: posts webhook
n8nCRM/n8nCRM.Module/Controllers/OrderFulfilledController.cs - n8n workflow engine → Invoice workflow: runs
README.md - Invoice workflow → OData API: creates invoice
README.md - n8n workflow engine → Daily report workflow: runs
README.md - Daily report workflow → OData API: queries orders
README.md - Daily report workflow → Email service: sends summary
README.md - OData API → EF data context: accesses data
- EF data context → SQLite database: persists
README.md - Orders and items → Customers: references
n8nCRM/n8nCRM.Module/BusinessObjects/Order.cs - Orders and items → Order line items: aggregates
n8nCRM/n8nCRM.Module/BusinessObjects/Order.cs - Invoices → Orders and items: references
n8nCRM/n8nCRM.Module/BusinessObjects/Invoice.cs - Authentication API → JWT provider: uses token provider
- Reports API → EF data context: reads report data