Skip to content
VMitovPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

Payment API Example

Run the service

Start db with schema

docker run \
    --mount type=bind,source="$(pwd)/database",target=/docker-entrypoint-initdb.d \
    --publish 5432:5432 \
    postgres

Start the service in container

docker build --tag=payments .
docker run \
    --network=host \
    payments -db "postgres://[email protected]:5432/payments?sslmode=disable"

Run tests

go test ./...

in Docker container

docker run --rm \
    --mount type=bind,source="$(pwd)",target=/go/src/github.com/VMitov/payments
    golang go test github.com/VMitov/payments/...

integration tests

  1. Start the database as shown above.
go test ./... -integration

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages