Freezer is handling everything related to user's ice tokenomics and statistics about it.
These are the crucial/critical operations you will need when developing Freezer:
- If you need to generate a new Authorization Token & UserID for testing locally:
- run
make print-token-XXX, whereXXXis the role you want for the user.
- run
- If you need to seed your local database, or even a remote one:
- run
make start-seeding - it requires an .env entry:
MASTER_DB_INSTANCE_ADDRESS=admin:pass@127.0.0.1:3301
- run
make run-freezer- This runs the actual read service.
- It will feed off of the properties in
./application.yaml - By default, https://localhost:2443/tokenomics/r runs the Open API (Swagger) entrypoint.
make run-freezer-refrigerant- This runs the actual write service.
- It will feed off of the properties in
./application.yaml - By default, https://localhost:3443/tokenomics/w runs the Open API (Swagger) entrypoint.
make start-test-environment- This bootstraps a local test environment with Freezer's dependencies using your
dockeranddocker-composedaemons. - It is a blocking operation, SIGTERM or SIGINT will kill it.
- It will feed off of the properties in
./application.yaml- MessageBroker GUIs
- DB GUIs
- https://github.com/tarantool/awesome-tarantool#gui-clients
- (CLI)
docker exec -t -i mytarantool consolewheremytarantoolis the container name
- This bootstraps a local test environment with Freezer's dependencies using your
make all- This runs the CI pipeline, locally -- the same pipeline that PR checks run.
- Run it before you commit to save time & not wait for PR check to fail remotely.
make local- This runs the CI pipeline, in a descriptive/debug mode. Run it before you run the "real" one.
make lint- This runs the linters. It is a part of the other pipelines, so you can run this separately to fix lint issues.
make test- This runs all tests.
make benchmark- This runs all benchmarks.