This project is a clone of the Golang Backend Clean Architecture by AMIT SHEKHAR, which you can find here. I have made some modifications to this project, including changing the database from MongoDB to MySQL, using sqlmock for testing, and making minor adjustments. This project serves as a Go clean architecture template that you can use as a foundation for your own projects.
A Go (Golang) Backend Clean Architecture project with Gin, MySql, JWT Authentication Middleware, Test, and Docker.
You can use this project as a template to build your Backend project in the Go language on top of this project.
Learn about this project architecture in detail from the blogs mentioned below:
- Go Backend Clean Architecture
- Go JWT Authentication Middleware
- Configuration with Viper in Go
- Test with Testify and Mockery in Go
- Router
- Controller
- Usecase
- Repository
- Domain
All pull requests are welcome.