# Option 1: Using scripts (simplest)
./scripts/start-service.sh
# Option 2: Using Make
make run
# Option 3: Using Docker
./scripts/start-docker.shStart service:
./scripts/start-service.shWith custom configuration:
PORT=9000 LOG_LEVEL=info ./scripts/start-service.shStart in Docker:
./scripts/start-docker.shStop:
./scripts/stop-service.sh# Build and run
make run
# Run with debug logging
make run-debug
# Run in Docker
make docker-run-foreground
# See all commands
make help- Press
F5 - Select "Launch go-convert Service"
- Service starts with debugger attached ✨
Keyboard shortcuts:
F5- Start debugging⇧F5- Stop⌘⇧F5- Restart
- Open run configurations dropdown (top right)
- Select "Go Convert Service"
- Click
▶️ Run or 🐛 Debug
Available configurations:
- Go Convert Service (port 8090)
- Go Convert Service (Port 9000)
- Docker: Go Convert Service
curl http://localhost:8090/healthzExpected: {"status":"ok"}
curl -X POST http://localhost:8090/api/v1/convert/batch \
-H "Content-Type: application/json" \
-d '{
"items": [
{
"id": "test-1",
"entity_type": "pipeline",
"yaml": "pipeline:\n identifier: test\n name: Test\n stages: []"
}
]
}'curl -X POST http://localhost:8090/api/v1/convert/batch \
-H "Content-Type: application/json" \
-d @test_batch_with_mapping.json| Variable | Default | Description |
|---|---|---|
PORT |
8090 | HTTP port |
LOG_LEVEL |
debug | Log level (debug/info/warn/error) |
MAX_BATCH_SIZE |
100 | Max items per batch |
MAX_YAML_BYTES |
1048576 | Max request size (1MB) |
Example:
PORT=9000 LOG_LEVEL=info make run# Change port
PORT=9000 ./scripts/start-service.sh
# Or kill existing process
./scripts/stop-service.sh# Download dependencies
make mod-download
# Rebuild
make clean build# Clean and rebuild
make docker-stop
docker system prune -a
make docker-build- 📖 Read
SERVICE.mdfor detailed documentation - 🏗️ Read
TECH_SPEC.mdfor architecture details - 🧪 Run tests:
make test - 🐳 Deploy to Kubernetes (see SERVICE.md)
| Task | Command |
|---|---|
| Start | ./scripts/start-service.sh |
| Stop | ./scripts/stop-service.sh |
| Build | make build |
| Test | make test |
| Docker | ./scripts/start-docker.sh |
| Health | curl localhost:8090/healthz |
| Logs | docker logs -f go-convert-service |
| Help | make help |