CRUD API server of Clean Architecture with Go(Echo), Gorm, MySQL, Docker and Swagger

Overview

CRUD API Server of Clean Architecture

  • Go(echo)
  • gorm
  • mysql
  • docker
  • swagger

ulwlu/Go-CleanArchitecture-APIServer

build

docker-compose up -d --build

API

Postman and Fiddler is recommended to use.

curl -X POST "http://localhost:8080/users" -H "Content-Type: application/json" -d '"{"lastname": "Murakami", "firstname": "Kohei"}"'
curl -X GET "http://localhost:8080/users/1"
curl -X GET "http://localhost:8080/users"
curl -X PUT "http://localhost:8080/users/1" -H "Content-Type: application/json" -d '"{"lastname": "David", "firstname": "San"}"'
curl -X DELETE "http://localhost:8080/users/1"

ulwlu/Go-CleanArchitecture-APIServer

document

http://localhost/docs/

ulwlu/Go-CleanArchitecture-APIServer

ulwlu/Go-CleanArchitecture-APIServer

Article

https://zenn.dev/ulwlu/scraps/170d2d2412daf7

Thanks

I learned a lot from these articles.

https://nrslib.com/clean-architecture/

https://www.slideshare.net/masuda220/powered-by-spring

https://qiita.com/tono-maron/items/345c433b86f74d314c8d

https://medium.com/eureka-engineering/go-dependency-inversion-principle-8ffaf7854a55

https://qiita.com/hirotakan/items/698c1f5773a3cca6193e

https://qiita.com/ryokky59/items/6c2b35169fb6acafce15

https://qiita.com/Le0tk0k/items/c2945c260f28f7ee2d47

https://qiita.com/so-heee/items/0cca93008eae635c642a

You might also like...
A Go API project using Beego(Go Framework) with Swagger UI

Beego_API_with_swagger_UI Descriptions This is a Go API project using Beego(Go F

Percobaan membuat API dengan Golang menggunakan web framework Gin dan Swagger docs.
Percobaan membuat API dengan Golang menggunakan web framework Gin dan Swagger docs.

Percobaan Gin Framework Percobaan membuat API dengan bahasa Go-lang. Tech Stack Gin - Web framework Gin Swaggo - Swagger Docs integration for Gin web

REST API with Echo Framework from Go
REST API with Echo Framework from Go

REST API with Echo Framework from Go

A Golang restful API boilerplate based on Echo framework v4

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

Example Golang API backend rest implementation mini project Point Of Sale using Gin Framework and Gorm ORM Database.

Example Golang API backend rest implementation mini project Point Of Sale using Gin Framework and Gorm ORM Database.

Building basic API with go, gin and gorm

Project Description Terima kasih sudah berkunjung ke halaman repositori ini, repositori ini berisi basic RESTFUL API dengan menggunakan teknologi seba

A rest api with the crud methods made it in golang
A rest api with the crud methods made it in golang

go-API-REST A rest api made it in golang that connects to a mongodb database This API is compatible with the Angular frontend from https://github.com/

API in Golang with CRUD to manipulate GeoJson

Golang API with Hexagonal Architecture API to manage point of navigation Object Point: - Name - Latitude - Longiture TODO ❏ Create point in Mongodb [X

Bootstrapper and middleware for Echo framework in golang.
Bootstrapper and middleware for Echo framework in golang.

rk-echo Interceptor & bootstrapper designed for echo framework. Currently, supports bellow functionalities. Name Description Start with YAML Start ser

Owner
null
Simple REST-API implementation using Golang with several packages (Echo, GORM) and Docker

Simple REST-API Boilerplate This is a simple implementation of REST-API using Golang and several packages (Echo and GORM). By default, I use PostgreSQ

Reza Pahlevi 1 Sep 13, 2022
golang crud restful api with gorm , gin and mysql DB

crud restful api with golang , gorm , gin and mysql this api does a simple CRUD operations on a single table mysql Database . this is build on top off

Brahim Bessrour 14 Feb 26, 2022
Swagger + Gin = SwaGin, a web framework based on Gin and Swagger

Swagger + Gin = SwaGin Introduction SwaGin is a web framework based on Gin and Swagger, which wraps Gin and provides built-in swagger api docs and req

long2ice 54 Sep 21, 2022
Swagger + Gin = SwaGin, a web framework based on Gin and Swagger

Swagger + Gin = SwaGin Introduction SwaGin is a web framework based on Gin and Swagger, which wraps Gin and provides built-in swagger api docs and req

long2ice 54 Sep 21, 2022
Template/Starter code for Go application with Gin, System Tray, Gorm, Air, Swagger, JWT

gin-systray-starter Starter code for Go application with Gin, System Tray, Gorm, Air, Swagger, JWT systray, https://github.com/getlantern/systray gin,

jinyaoMa 1 Sep 16, 2022
REST api using fiber framework written in golang and using firebase ecosystem to authentication, storage and firestore as a db and use clean architecture as base

Backend API Example FiberGo Framework Docs : https://github.com/gofiber Info This application using firebase ecosystem Firebase Auth Cloud Storage Fir

Atilla Pehlivan 3 May 31, 2022
Best simple, lightweight, powerful and really fast Api with Golang (Fiber, REL, Dbmate) PostgreSqL Database and Clean Architecture

GOLANG FIBER API (CLEAN ARCHITECTURE) Best simple, lightweight, powerful and really fast Api with Golang (Fiber, REL, Dbmate) PostgreSqLDatabase using

Elias Champi 3 Sep 2, 2022
基于Golang的框架Gin开发,项目结构和理念参考Laravel。现支持:MySQL、Redis、MVC、拦截器、助手函数、fresh热更、swagger-UI、tpl模版输出、安全的Api。

GinLaravel的构建和运行周期与Beego、Vue、React、Laravel、ThinkPHP、Django等都会有类似的引导思路、参数设置、插件扩展、服务部署、代码统一性、生态护城河等。

方圆 48 Sep 20, 2022
Go WhatsApp REST API Implementation Using Fiber And Swagger

Go WhatsApp REST API Implementation Using Fiber And Swagger Package cooljar/go-whatsapp-fiber Implements the WhatsApp Web API using Fiber web framewor

Mohammad Fajar Rizky 9 May 9, 2022
An example repo for RESTful API with swagger docs & unit testing

go REST API An example repo for RESTful API with swagger docs & unit testing Starting development server Copy .env.example to .env in the same directo

Rishabh Pandey 0 Nov 5, 2021