A demo payments API in Go.
Note: The Author learned Go in 2 days then produced this.
Run the API like so:
dep ensure
go run main.go
The API will be running on port 8080.
To run the unit tests, run the following:
go test ./...
To run API tests, you need python3 intalled on your computer. Then
install tavern and pytest with pip like so:
pip install pytest tavern
Then start the API and run the api tests like so:
py.test apitests
Remember to stop and start the API before running the API tests!