wex-coding-challenge

command module
v0.0.0-...-e6f38c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 1 Imported by: 0

README

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
}'

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL