/wex-coding-challenge

WEX TAG and Gateways Product

Primary LanguageGoMIT LicenseMIT

wex-coding-challenge

The project is written in go, using the hexagonal architecture.

Setup Project

Requirements

  1. Clone this repo
git clone https://github.com/kevinsantana/wex-coding-challenge.git
  1. To run this project you need docker and docker-compose up and running on your machine.

  2. Copy .env.example to .env and export them with

make envvars

Run

  1. Build docker image with
make docker-build
  1. Run postgres docker database
make docker-postgres
  1. 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
}'