Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/rumbaPublic

The clean kuma (🤖🧹)

License

NotificationsYou must be signed in to change notification settings

mdn/rumba

Rumba isMDN's new back-end. It supersedeskuma andmainly powersMDN Plus.

Quickstart

Before you can start working with Rumba, you need to:

  1. Installgit andRust.
  2. Install additional dependencies:
    • Mac OSbrew install libpq && brew link --force libpq
    • Ubuntu:apt install gcc libpq-dev libssl-dev pkg-config
  3. Run a PostgreSQL instance:
    • Mac OS: e.g.Postgres.app
    • Docker:docker run --name postgres -p 5432:5432 -e POSTGRES_USER=rumba -e POSTGRES_PASSWORD=rumba -e POSTGRES_DB=mdn -d postgres).
  4. Run an Elastic instance:
    • Docker:docker run --name elastic -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -d elasticsearch:8.3.3
  5. Copy.settings.dev.toml to.settings.toml.
  6. Runcargo run.
  7. To create an authenticated session navigate tohttp://localhost:8000/users/fxa/login/authenticate/?next=%2F and login with your firefox staging account
  8. To check you are logged in and ready to go navigate tohttp://localhost:8000/api/v1/whoami you should see your logged in user information.

Formatting & Linting

All changes to Rumba are required to be formatted withRustfmt (cargo fmt --all) and free ofClippy linting errors or warnings (cargo clippy --all --all-features -- -D warnings).

To avoid committing unformatted or unlinted changes, we recommend setting up a pre-commitGit hook in your local repository checkout:

touch .git/hooks/pre-commitchmod +x .git/hooks/pre-commitcat<<EOF >> .git/hooks/pre-commit#!/usr/bin/env bashecho "Running cargo fmt..."cargo fmt --all -- --checkecho "Running cargo clippy..."cargo clippy --all --all-features -- -D warningsEOF

Testing

Seetests

About

The clean kuma (🤖🧹)

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors11


[8]ページ先頭

©2009-2025 Movatter.jp