Skip to content

rodrigotamura/arch-hexagonal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arch-hexagonal

A Golang sample project with Hexagonal Arch.

Hexagonal Arch

Using Cobra-cli

Input adapter: CLI interface

Creating new product:

go run main.go cli -a=create -n=Product CLI -p=33.99

Getting product by ID:

go run main.go cli -a=get -i="35c68dee-e321-44cb-b1b1-4703ea71db12"

Input adapter: Webserver

Starting server:

go run main.go http

Getting a product:

curl http://localhost:8080/product/38092168-d995-40ad-8e96-1419b2a6ddae

Output adapter: SQLite

About

A Golang project with Hexagonal Arch.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published