Giter Site home page Giter Site logo

fr13n8 / todo-app Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 201 KB

Simple REST todo API server in GO ✔️

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

Shell 0.45% Go 98.98% Dockerfile 0.22% Makefile 0.35%
go golang rest rest-api restful-api crud todo todoapp todolist todolist-app service docker docker-compose graceful-shutdown jwt jwt-go

todo-app's Introduction

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

todo-app's People

Contributors

fr13n8 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

todo-app's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.