Your first call
The gateway is gRPC and gRPC-Web only; see Calling the gateway.
This tutorial walks you through building and running Virtufin API for the first time, and making your first call to it.
Prerequisites
| Component | Version | Purpose |
|---|---|---|
| .NET SDK | 10.0+ | Build and run the API service |
| Dapr CLI | 1.18+ | Initialize state store and pub/sub components |
| Docker | 24+ | Containerized deployment (optional) |
| Protocol Buffers | proto3 | Service definition format |
Quick Start
1. Clone and Build
git clone https://git.haenerconsulting.com/virtufin/api.git
cd api
dotnet build
2. Initialize Dapr
dapr init
3. Run the Service
cd src/Virtufin.Api
dapr run --app-id api --app-protocol grpc --app-port 5002 -- dotnet run
The service starts on port 5002 (gRPC and gRPC-Web, HTTP/2) and port 5001 (HTTP/1.1: the health checks only).
4. Verify
# Health check
curl http://localhost:5001/health
# List available services (native gRPC)
grpcurl -plaintext localhost:5002 virtufin.Gateway/ListServices
Next steps
- Architecture Overview — Understand the system design
- API Reference — Explore available endpoints
- Python Client — Build your first Python gRPC client
- C# Client — Use the .NET client library
- TypeScript Client — Browser and Node.js client
- Run the gateway locally — Docker, ports, the full stack