Skip to content

Tulkdan/payment-gateway

Repository files navigation

Payment Gateway

Getting started

Prerequisites

hurl
CLI tool that runs http requests, similar to curl
docker
Using docker to run project and mocks
just
CLI runner
jq
(Optional) CLI tool to query JSON data

If you’re using nix, you can find a flake in the root of the project and run nix develop to download all the tools (or allow direnv to auto import in your path)

Usage

Run docker compose to start mocks, the mocks will use ports 8002 and 8003 and the were created using stubby4node

docker compose up

In another terminal, bulid and run the project with just, it will start the project in port 8000

just run

In other terminal, make the request with hurl

hurl request.hurl

In case you want to see the response with json format, you can use jq

hurl request.hurl | jq .

Tests

To run all tests, you can run the command that it will run all tests from the project:

just test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages