- 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)
Run docker compose to start mocks, the mocks will use ports 8002 and 8003 and the were created using stubby4node
docker compose upIn another terminal, bulid and run the project with just, it will start the project in port 8000
just runIn other terminal, make the request with hurl
hurl request.hurlIn case you want to see the response with json format, you can use jq
hurl request.hurl | jq .To run all tests, you can run the command that it will run all tests from the project:
just test