An end-to-end enterprise integration demonstrating how CRM and ERP systems can work together through Foundgine, Temporal, and Keycloak.
The example combines independent services, databases, workflow orchestration, identity management, and MCP endpoints into an executable integration environment.
| Component | Technology | Responsibility |
|---|---|---|
| CRM | .NET 10, Foundgine, EF Core | Customer and commercial operations |
| CRM database | SQL Server | CRM persistence |
| ERP | Java, Spring Boot, JPA | Enterprise resource planning |
| ERP database | PostgreSQL | ERP persistence |
| Workflow orchestration | Temporal | Cross-system workflow execution |
| Identity | Keycloak | Authentication and authorization |
| Integration contracts | Shared contracts | Cross-service data consistency |
| AI negotiation | Microsoft Agent Framework | Bot-assisted negotiation |
| MCP | Foundgine MCP | Read-only integration endpoints |
CRM and ERP remain independently deployable applications. Temporal coordinates workflows that span both systems.
.
├── crm/
│ ├── src/
│ │ ├── Crm.Api/
│ │ └── Crm.Worker/
│ └── tests/
├── erp/
│ └── ...
├── temporal/
│ └── workflows/
├── contracts/
├── e2e/
│ └── selftest/
├── scripts/
├── docs/
│ ├── implementation-plan.txt
│ ├── decisions.md
│ ├── fulfilment.md
│ ├── quote-to-order.md
│ ├── customer-to-cash-temporal.md
│ ├── keycloak.md
│ ├── mcp.md
│ ├── bot-negotiation.md
│ └── foundgine-erp-model.md
├── docs-site/
├── start.sh
└── README.md
The repository also contains checkpoint documentation describing implementation progress and design decisions.
Install the following tools:
- Docker and Docker Compose
- .NET 10 SDK
- Java SDK compatible with the ERP and Temporal workflow modules
- Maven
- Node.js and npm, if working with the TypeScript components
- Git
Docker must be running before starting the infrastructure.
Start the infrastructure:
./start.shThis starts the development dependencies, including:
- SQL Server for CRM
- PostgreSQL for ERP
- Temporal
Start the applications separately using the commands below.
| Service | Address |
|---|---|
| CRM API | http://localhost:5000 |
| ERP API | http://localhost:8082 |
| SQL Server | localhost:1433 |
| PostgreSQL | localhost:5434 |
| Temporal | Configured by the local Temporal infrastructure |
CRM SQL Server:
Host: localhost
Port: 1433
User: sa
Password: Crm_dev_pw1!
ERP PostgreSQL:
Host: localhost
Port: 5434
Database: erp
User: erp
Password: erp_dev_pw
These credentials are for local development only. Do not use them in production.
The CRM application is implemented using .NET 10, Foundgine, Entity Framework Core, and SQL Server.
It provides the customer and commercial capabilities used by the integration workflows.
dotnet run --project crm/src/Crm.ApiThe API is available at:
http://localhost:5000
dotnet run --project crm/src/Crm.WorkerThe CRM worker participates in Temporal orchestration using the configured task queue.
Configure the test database connection:
$env:CRM_TEST_CONNECTION="your-test-connection-string"Run the CRM tests:
dotnet testUse an isolated test database. Do not point automated tests at production data.
The ERP application is implemented using Java, Spring Boot, and JPA, with PostgreSQL as its persistence layer.
It provides the ERP-side business capabilities required by the integration.
mvn -f erp/pom.xml spring-boot:runThe API is available at:
http://localhost:8082
Configure the