dev-blog

Jasne — poniżej pełna, poprawiona wersja create-user-service.sh, która:


🔹 Testy

# healthcheck
curl http://localhost:3000/health

# 1. Tworzysz usera
USER_ID=$(curl -s -X POST http://localhost:3000/users \
  -H "Content-Type: application/json" \
  -d '{ "name": "Jan", "email": "jan@test.com" }' | jq -r .id)

# 2. Pobierasz go po id
curl http://localhost:3000/users/$USER_ID

Chcesz, żebym od razu zrobił też integracyjne testy z Jest + Supertest, żeby wszystko było od razu „production-ready”?