Lern RESTFul API Clean Architecture
Learn the Golang RESTFul API by trying to implement a clean architecture that is simple and easy for beginner programmers to understand
- By Ihsan Arif
- 20 Jan 2024
- 12 articles
- intermediate
Interested Topics
Learn RESTFul API by trying the Clean Architecture method or concept, which is a concept that divides into several components that have independent properties and do not depend on specific external libraries. So that in this concept we are not specifically fixated on a certain Framework or depend on a specific database.
This clean architecture concept is familiar to Bob, which we often call a multi-layered architecture or sometimes called each layer module or domain.
This time we will try to implement this clean architecture in a simple project using the RESTFul API using the MySQL database and the Rest API that we will use using the Chi library.
Some tools that are prepared include:
- Visual Studio Code
- MySQL Databases
- Golang Development Kit (VSCode Plugin)
- Docker
- Supporting browser
- Postman or similar applications
And for friends there are some that need to be understood also related to the previous materials including:
- Basic Golang Programming
- Modular Golang
- Golang HTTP Router
- JSON usage goal
- Golang Web Server and
- Golang that interacts with the Database
Hopefully you can follow this topic to the end. For those who want to learn through existing code, we have provided it in the repository here https://github.com/santekno/learn-golang-restful. And you can also visit us on our Github https://github.com/santekno to see other projects that we have made.
- 01 Nov 2023 01 RESTful Introduction to Golang intermediate
- 02 Nov 2023 02 Membuat API Specification menggunakan OpenAPI intermediate
- 21 Jan 2024 03 Creating a Database on MySQL Golang intermediate
- 22 Jan 2024 04 Implementing Clean Architecture on Project intermediate
- 23 Jan 2024 05 Creating a Repository as Access Data intermediate
- 26 Jan 2024 06 Creating Usecases as Data Logic intermediate
- 27 Jan 2024 07 Creating a Handler as a Data Delivery Layer intermediate
- 28 Jan 2024 08 Adding a Request Validator Using Golang Playground intermediate
- 29 Jan 2024 09 Configuring HTTP Router, HTTP Server and Database Connection intermediate
- 30 Mar 2024 10 Adding Simple Authentication intermediate
- 01 Apr 2024 11 Add Unit Tests Using Mockery intermediate
- 02 Apr 2024 12 Creating Dependecy Injection Library Google Wire intermediate