krarjun90 / sample-go-api

This repo can be used as a starter kit to create a REST API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sample-go-api

This repo acts as a starter kit to create a REST api to perform basic operations like add, get and delete.

Setup

Before running make, make sure you install postgres, create a database and update the details in application.yml

make

Start service

make start

Test

Mocks are generated using mockery. Generated files are not checked in.

make test

About

This repo can be used as a starter kit to create a REST API.


Languages

Language:Go 95.1%Language:Makefile 4.1%Language:HTML 0.9%