dv-merchant

module
v0.9.6-RC02 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT

README

DV backend

Linters

To format all the source texts of the project in accordance with the Go standard, you can use the command:

go fmt ./...

The following linters are used in the project:

  • go vet
  • errcheck
    command install linter: go install github.com/kisielk/errcheck@latest.
  • staticcheck
    command install linter: go install honnef.co/go/tools/cmd/staticcheck@latest.
  • usestdlibvars
    command install linter: go install github.com/sashamelentyev/usestdlibvars@latest

All linters of the project can be run with the command:

make lint

Testing

To unit-tests, you need to run the command in the root of the project:

make test

Building

Go version 1.22.0 or higher is required for the build.

To build, you need to run the command in the root of the project:

make build

After completing the command, the binary file github.com/dv-net/dv-merchant will appear in the .bin folder.

Running

Start project for developer

cd .docker/dev
docker-compose up -d --no-deps --build github.com/dv-net/dv-merchant

Or using make run.

SQL

To generate SQL wrappers you need to install pgxgen:

go install github.com/tkcrm/pgxgen/cmd/pgxgen@latest

CLI commands

Start app server
github.com/dv-net/dv-merchant start
Show app version
github.com/dv-net/dv-merchant version
Run db migrate
github.com/dv-net/dv-merchant migrate up/down
Run db seed
github.com/dv-net/dv-merchant seed up/down
Run config validate, gen envs and flags for config
github.com/dv-net/dv-merchant config 
Run permission command
github.com/dv-net/dv-merchant permission 
Transactions management
github.com/dv-net/dv-merchant transactions 
Users management
github.com/dv-net/dv-merchant users 

Directories

Path Synopsis
cmd
app command
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
external
Package external Code generated by swaggo/swag.
Package external Code generated by swaggo/swag.
generators
blockchain command
internal
app
dto
mocks
pkg
aml
iso
otp
sql
third_party

Jump to

Keyboard shortcuts

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