- Notifications
You must be signed in to change notification settings - Fork19
mdn/rumba
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Rumba isMDN's new back-end. It supersedeskuma andmainly powersMDN Plus.
Before you can start working with Rumba, you need to:
- Installgit andRust.
- Install additional dependencies:
- Mac OS
brew install libpq && brew link --force libpq - Ubuntu:
apt install gcc libpq-dev libssl-dev pkg-config
- Mac OS
- 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).
- 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
- Docker:
- Copy
.settings.dev.tomlto.settings.toml. - Run
cargo run. - To create an authenticated session navigate tohttp://localhost:8000/users/fxa/login/authenticate/?next=%2F and login with your firefox staging account
- 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.
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
Seetests
About
The clean kuma (🤖🧹)
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.