GOLANG FIBER API (CLEAN ARCHITECTURE)
Best simple, lightweight, powerful and really fast Api with Golang (Fiber, REL, Dbmate) PostgreSqLDatabase using Clean Architecture
status: WIP
LAYERS
- App: this directory has main setup files
- Interface
- route handler here
- midlewares
- presenters
- response configuration
- validators
- use case this directory has application use cases (controllers)
- infraestructure this directory has database configuration, schemas, and repositories
- Domain folder domain folder contain entities and rules
about api
API of an order flow inventory system built for the "Versatil Print shop".
about frameworks
It is created with golang (fiber and REL)
how to run
golderserver requires go 1.17+ postgres and dbmate installed to run.
create .env file, copy .envexample content and set your postgres variables
touch .env
Creating database:
to create database in postgres check "infraestructure/database/base" folder
dbmate up
Install the dependencies and start the server.
make download
make run
then, check
127.0.0.1:3000
License
APACHE LICENSE 2.0