Skip to content

andreyxdd/blog-posts-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages