Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ikurotime/go_api_clean_architecture

Example of Go http api with clean architecture
https://github.com/ikurotime/go_api_clean_architecture

Last synced: about 4 hours ago
JSON representation

Example of Go http api with clean architecture

Awesome Lists containing this project

README

        

# Go Clean Arquitecture Example 🎯

This is a simple example of a Go project using Clean Arquitecture.

## Project Structure 📁

```sh
.
├── src/
│ ├── domain/
│ └── user.go
│ ├── infrastructure/
│ │ ├── router.go
│ │ └── sqlHandler.go
│ ├── interfaces/
│ │ ├── api/
│ │ │ ├── context.go
│ │ │ └── user_controller.go
│ │ └── database/
│ │ │ ├── sql_handler.go
│ │ │ └── user_repository.go
│ ├── usecase/
│ │ ├── user_interactor.go
│ │ └── user_repository.go
│ └── server.go
├── go.mod
├── go.sum
└── README.md
```

## How to run 🚀

```sh
go run src/server.go
```