Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 733 Bytes

File metadata and controls

26 lines (21 loc) · 733 Bytes

Local dev

To start the app with hot reload on code updates for local dev, run:

docker-compose -f docker-compose.dev.yaml up --build

Check if the server has started with:

curl localhost:8080/api/health

The result should be {"status":"ok"}.

Access swagger API specifications at:

curl localhost:8080/api/docs/index.html

Possible improvements

  • Implement pagination for GET /api/v1/posts endpoint
  • Add customized logger (such as zaplog)
  • Implement various middlewares for rate limiting, auth, etc.
  • Optimize docker image
  • Extract config from environmental variables (such as port, credentials, etc.) or config files
  • Handle errors on server startup