hmtm-toys

module
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2024 License: GPL-3.0

README

Usage

Run via docker:

To run app and it's dependencies in docker, use next command:

task -d scripts docker_prod -v

Run via source files:

To run application via source files, use next commands:

go run ./cmd/hmtmtoys/main.go

gRPC:

To setup protobuf, use next command:

task -d scripts setup_proto -v

To generate files from .proto, use next command:

task -d scripts grpc_generate -v

Linters

To run linters, use next command:

 task -d scripts linters -v

Tests

To run test, use next commands. Coverage info will be recorded to tests/coverage folder:

task -d scripts tests -v

Benchmarks

To run benchmarks, use next command:

task -d scripts bench -v

Migrations

To create migration file, use next command:

task -d scripts makemigrations NAME={{migration name}}

To apply all available migrations, use next command:

task -d scripts migrate

To migrate up to a specific version, use next command:

task -d scripts migrate_to VERSION={{migration version}}

To rollback migrations to a specific version, use next command:

task -d scripts downgrade_to VERSION={{migration version}}

To rollback all migrations (careful!), use next command:

task -d scripts downgrade_to_base

To print status of all migrations, use next command:

task -d scripts migrations_status

Directories

Path Synopsis
api
cmd
internal
app
mocks
repositories
Package mockrepositories is a generated GoMock package.
Package mockrepositories is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL