fr13n8 / todo-app

Simple REST todo API server in GO ✔️

Home Page:https://go-todo-app-backend.herokuapp.com/swagger/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

REST API TODO in Go

Development tools and principles

  • Go Web Applications following the REST API Design
  • Working with the framework gin-gonic/gin
  • The Clean Architecture approach to building an application structure. Dependency injection technique
  • Working with Postgres DB. Running from Docker. Generation of migration files
  • Application configuration using the library spf13/viper. Working with environment variables
  • Working with BD using the library: sqlx
  • Auth with JWT(get and refresh) and middleware
  • Write SQL queries
  • Graceful Shutdown

DEMO

todo-app

How to run

make build && make run

If app startet first time need to run migrations

make migrate

All commands

  • Build
make build
  • Run
make run
  • Run Tests
make test
  • Migrate up
make migrate_up
  • Migrate down
make migrate_down
  • Generate swagger documentation
make swag
  • Generate mocks
cd pkg/service && go generate

About

Simple REST todo API server in GO ✔️

https://go-todo-app-backend.herokuapp.com/swagger/index.html


Languages

Language:Go 99.0%Language:Shell 0.4%Language:Makefile 0.4%Language:Dockerfile 0.2%