Simple ecommerce API server with Golang Echo
- Docker/docker-compose
- Go 1.13++
- Make
make setup
make docker/up
make db/up
make seeder
make run
make db/down
make db/up
make seeder
- Sqlboiler: this tool generate models that handle database operations which is much more fast than casual ORM
- Migration: this helps run database migration written in SQL queries
My code base was design following clean architecture with 2 layers:
- Infras: This layer contains packages involving middlewares, API configurations
- Usecase: This layer is used for business logic handling in which repo packages come along with each target database table
- cmd: Implemented necessary executable entry including many server application, seeder runner
- internal: Encapsulated all the source code
- db: Including SQLBoiler scripts and database migration configures
- scripts: bash scripts to handle operations
- Proper API docmentation
- Cover all the unit tests