To see the list of available commands, run make help (or just make as it is
the default action).
Before running any other steps, run make setup to ensure all prerequisites are
in place.
For more information on how the API works, check architecture.md. For
information on how to configure the API, see configuration.md.
brew install make git protobuf
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone git@github.com:blockjoy/blockvisor-api.git
cd blockvisor-api
make setupFirst run make up to start the required docker-compose services.
Then run make test to run the full integration testing suite. If you want to
run a specific test, pass it as an argument (e.g. make test my_test).
When you are finished, run make down to tear down all the docker-compose
services again.
All protobuf schema updates are made with a Pull Request to the api-protos repo. Once merged there, the submodule in this repo can be updated with:
cd proto
git checkout main
git pullFor testing changes in this repo against an in-progress api-proto branch you
can run git checkout [branch], but should switch the submodule back to main
before merging changes to this repo.