The project is written in go, using the hexagonal architecture.
- Clone this repo
git clone https://github.com/kevinsantana/wex-coding-challenge.git
-
To run this project you need docker and docker-compose up and running on your machine.
-
Copy .env.example to
.env
and export them with
make envvars
- Build docker image with
make docker-build
- Run postgres docker database
make docker-postgres
- Either export WEX.postman_collection or make a curl request
curl --location 'localhost:3060/api/v1/purchase' \
--header 'Content-Type: application/json' \
--data '{
"description": "new purchase test",
"amount": 89.9999
}'