Skip to content

dropdevrahul/simple-api

Repository files navigation

Go API

A simple go API with minimum dependencies and postgres integration

Dependencies

  • Database

  • Configuration

    • viper for configuration
  • Router

    • chi as router
  • API Docs

    • swag helps generating swagger from docs as well as serve swagger UI from within the API using any popular routers

Makefile

Please see the makefile for available commands.

  • To generate swagger API use the make command make gen-swagger then run make run and go to localhost to see the generated swagger docs