make help
Display help, and the most useful Makefile targetsmake start
Build all containers and start the servicesmake start_debug
Build container with the application and a debuggermake stop
Stop all containersmake app
Build application containermake app_debug
Build application and debugger containermake clean
Remove any existing containers and volumes of the application.make openapi_validate
Validate the OpenAPI specification filemake openapi_editor
Start the Swagger Editor (http://localhost:18081/)curl http://localhost:18080/-/live
Check if the service is upcurl http://localhost:18080/-/health
Check if the service and its dependencies are upcurl http://localhost:18080/-/metrics
Prometheus metricscurl http://localhost:18080/users
Return all userscurl http://localhost:18080/users/1
Return the user with ID 1
curl -H 'Content-type: application/json' http://localhost:18080/users -d '{"name":"new user"}'
Add a new usermake test
Run all tests. Use the TAGS argument to pass specific tags (e.g. make TAGS=api test
)All database migrations should be backward compatible, so only the up
ones are needed.
The migrations library supports the down
ones though, in case you want to play with fire :)
See MIGRATIONS.md for more details.
┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ ├─────────▶│ │─────────▶│ User │─────────▶│ │ │HTTP Handlers│ │User Service │ │ Repository │ │ Database │ │ │◀─────────┤ │◀─────────│ │◀─────────┤ │ └─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘
Version | Tag | Published |
---|---|---|
v0.0.0-20210217111224-1c459d65696d | 1yr ago | |
v0.0.0-20201010065825-161a92a0fdd7 | 1yr ago | |
v0.0.0-20200827115742-196b6fee22eb | 2yrs ago | |
v0.0.0-20200811064251-393f924fcf36 | 2yrs ago |