Skip to content

rfaguiar/ports-adapter-pattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ports and Adapter Pattern

Execute application

docker-compose up --build
docker-compose exec app bash

Run tests

go test ./...

Generate mocks

mockgen -destination=application/mocks/application.go -source=applrun main.goication/product.go application

Initialize cobra configs

cobra init --pkg-name=github.com/rfaguiar/ports-adapter-pattern
cobra add cli

Run main cobra cmds

go run main.go cli

refresh mod libs

go mod tidy

connect sqlite db

sqlite3 db.sqlite

create table products

create table products(id string, name string, price float, status string);
select * from products;

Run main cobra http webserver

go run main.go http

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published