CRM System API

Simple Customer Relationship Management backend in Go

Run with Go

go run main.go

Run with Docker

# Build
docker build -t crm-system .

# Run
docker run -p 3000:3000 crm-system

API Endpoints

Method Path Description
GET /customers Get all customers
GET /customers/<id> Get customer by ID
POST /customers Create new customer
PUT /customers/<id> Full update customer
PATCH /customers/<id> Toggle contacted status
DELETE /customers/<id> Delete customer

Quick Test

# Get all customers
curl http://localhost:3000/customers

# Create
curl -X POST http://localhost:3000/customers \
  -H "Content-Type: application/json" \
  -d '{"name":"John Doe","role":"Manager","email":"john@example.com","phone":"123-456-7890","contacted":false}'

Server: http://localhost:3000