for local machine please install go version 1.8+ download and follow command below to start this service and please install docker desktop for support docker compose download
$ make setup
$ make build
for running a service for a part of cli is service
$ make api
for running a service for a part of worker
$ make worker
$ make swag
$ make format
$ make test
or testing coverage
$ make test-coverage
Generates Go code from SQL queries defined in the .sql
files in the pkg/database/queries/
directory.
sqlc generate
Requires Go SQLC 1.18
The settings are in sqlc.yaml
go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
curl -L https://packagecloud.io/golang-migrate/migrate/gpgkey| apt-key add -
echo "deb https://packagecloud.io/golang-migrate/migrate/ubuntu/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/migrate.list
apt-get update
apt-get install -y migrate
make postgres-migrate-new name=${name}
make migrate-up
make migrate-down version=${version}
make migrate-fix version=${version}