- Ensure you have the infra repo where the docker compose file is now located
- run
docker compose -f ../infra/local/docker-compose.yml up
- You can also run with the -d flag to keep the process in the background, ie
docker compose -f -d ../infra/local/docker-compose.yml up
- Run
docker logs [docker container name] -f
- ie
docker logs platform-admin-api -f
- You can get the container names using
docker ps
- If you don't want the output in real time, you can omit the
-f
flag
- This is now handled by the docker compose file
- If docker is giving you an error when you try to
docker-compose up --build
try the following commands in order: docker-compose down
docker system prune
(/y)docker volume prune
(/y)docker compose up --build
cd api
run go install
to get dependencies installed
run go test
or if you want to run a specific test, use go test -run [TestName] [./path/to/dir] -v -count 1
ie go test -run TestGetSwapPayload ./pkg/service -v -count 1
This is a 3rd party service that offers the ability to evaluate risk at a transaction level and identify fraud. A client file exists to connect to their API. Documentation is here: https://docs.unit21.ai/reference/entities-api You can create a test API key on the Unit21 dashboard. You will need to be setup as an Admin. Here are the instructions: https://docs.unit21.ai/reference/generate-api-keys When setting up the production env variables, their URL will be: https://api.unit21.com/v1