- Make sure musicbrainz db and the required database tables are present.
- Follow https://github.com/metabrainz/musicbrainz-docker to install the required containers and db dumps.
- Rename the
.env.example
to.env
, to set theRUN_MODE
todevelopment
.- Rename
config/development.example.toml
toconfig/development.toml
andconfig/production.example.toml
toconfig/production.toml
.- Ensure yq is installed, for using configs in the sql scripts.
- After ensuring musicbrainz_db is running on port 5432, Run the script
init_db.sh
in scripts dir.- In
config/development.toml
file, create a sentry rust project, enter your sentry project DSN (Data Source Name) in theurl
key's value.- Get the Internet Archive API accesskey and secret from here (requires sign in). Paste them in
config/development.toml
file[wayback_machine_api]
's variablesmyaccesskey
andmysecret
.
There are 2 methods to run the program:
- Build the project and run.
- Make sure rust is installed.
-
cargo build && ./target/debug/melba
- Use the Dockerfile
- Note that the container has to run in the same network as musicbrainz db network bridge.
docker-compose -f docker/docker-compose.dev.yml up --build
- Note that the container has to run in the same network as musicbrainz db network bridge.
-
On your browser, go to
localhost:3000
, to access grafana. Login using admin as username and password. -
Go to Dashboard. Select
melba-dashboard
. -
If the
Rust app metrics panel
shows no data, just click on the refresh icon on top right corner. -
To edit, right-click on the panel and select edit option. You can edit the panel, and save the generated json in
grafana/dashboards/metrics-dashboard.json
.