Skip to content

💰 Free, open-source & self-hosted cryptocurrency merchant platform for accepting crypto payments

License

Notifications You must be signed in to change notification settings

dv-net/dv-merchant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 

About

💰 Free, open-source & self-hosted cryptocurrency merchant platform for accepting crypto payments

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages