echo-rest-api

module
v0.1.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2022 License: MIT

README

Go Reference GoReportCard Badge

Echo Rest API boilerplate

A Golang restful API boilerplate based on Echo framework v4. Includes tools for module generation, db migration, authorization, authentication and more.

Overview

Request processing flow - Sequence Diagram

Used libraries:

  • labstack/echo
  • open-policy-agent/opa
  • uber-go/dig
  • spf13/cobra
  • jackc/pgx
  • ory/kratos
  • golang-migrate/migrate

Features

  • User Auth functionality (Signup, Login, Forgot Password, Reset Password) use Ory/Kratos
  • REST API
  • DB Migration
  • Configs via environmental variables
  • Unit tests
  • Dependency injection
  • Role based access control (use Open Policy Agent)
  • Module generation, quickly create model, usecase, api handler

Refs

TODOs

  • Update docker compose for ory/kratos
  • Update README.md
  • Write more tests
  • Add support Heroku

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL