Skip to content

daiki-skm/clean-architecture-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Golang Clean Architecture based on Uncle Bob's Clean Architecture and Summer internship in 2021

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages