Santa is handling everything related to user's achievements(levels, roles, tasks, badges) and gamification progress.
These are the crucial/critical operations you will need when developing Santa
:
- If you need to generate a new Authorization Token & UserID for testing locally:
- run
make print-token-XXX
, whereXXX
is 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:[email protected]:3301
- run
make run-santa
- This runs the actual read service.
- It will feed off of the properties in
./application.yaml
- By default, https://localhost:6443/achievements/r runs the Open API (Swagger) entrypoint.
make run-santa-sleigh
- This runs the actual write service.
- It will feed off of the properties in
./application.yaml
- By default, https://localhost:7443/achievements/w runs the Open API (Swagger) entrypoint.
make start-test-environment
- This bootstraps a local test environment with Santa's dependencies using your
docker
anddocker-compose
daemons. - 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 console
wheremytarantool
is the container name
- This bootstraps a local test environment with Santa'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.