Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.21 KB

README.md

File metadata and controls

38 lines (28 loc) · 1.21 KB

clean-architecture-api

Description

This is an example of implemention of Clean Architecture in Golang projects.

This project has 4 layer :

  • Infrastructure Layer (Frameworks & Drivers)
  • Interface Layer (Interface Adapters)
  • Usecase Layer (Application Business Rules)
  • Domain Layer (Enterprise Business Rules)

If you want to more understand, please refer to Zenn!

Run the Applications

This projects used a firestore. You must set the firestore. The following Golang入門 Firestore導入篇

# Setting
$ go mod tidy

# Prepare firestore account, and setting
$ path/to/serviceAccount.json

# Move to directory
$ cd application

# Run the application
$ go run main.go

# Execute the call
$ http://localhost:1323/users

References