Skip to content

VMitov/payments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published