Skip to content

Etenil/techtest-payments-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

techtest-payments-api

A demo payments API in Go.

Note: The Author learned Go in 2 days then produced this.

Requirements

  • Golang 1.11.5
  • Go Dep (Golang dependency manager)
  • Tavern (API testing)

Starting the API

Run the API like so:

dep ensure
go run main.go

The API will be running on port 8080.

Unit tests

To run the unit tests, run the following:

go test ./...

API tests

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!

About

A demo payments API in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors