go-skeleton-lido
- Clone repository
- cd root repository
- make tools
- make vendor
- copy
sample.env
to.env
- docker-compose up -d
- make migrate
- make build
- Run service ./bin/service
./bin/migrate create -ext=sql -dir=db/migrations
- make migrate from terminal or
bin/migrate -database ${POSTGRESQL_URL} -path db/migrations up
- Register handler
- Logic layer: /internal/pkg/your_package_name/. Just see an example with User package
- Env
- Connecters pg, logger, redis and etc...
- For external clients you have to create folder in ./internal/clients/<your_client_name>/client.go where your_client_name - is google_client, alchemy or internal client for private network.