Skip to content

Add developer onboarding script and fix insurance pool demo test#107

Open
gloskull wants to merge 2 commits into
Utility-Protocol:mainfrom
gloskull:Developer-Onboarding-Script-7360650623284413325
Open

Add developer onboarding script and fix insurance pool demo test#107
gloskull wants to merge 2 commits into
Utility-Protocol:mainfrom
gloskull:Developer-Onboarding-Script-7360650623284413325

Conversation

@gloskull

Copy link
Copy Markdown
Contributor

Motivation
Provide a one-command, repeatable onboarding flow to validate and prepare a local development environment for the repository.
Ensure Rust/WASM toolchain and Node.js workspaces are installed and configured consistently across contributors.
Reduce onboarding friction by auto-creating .env files from templates and keeping local JS deps out of version control.
Description
Add scripts/onboard.sh, a Bash onboarding script that checks for git, rg, rustc, cargo, rustup, node, and npm, installs the wasm32-unknown-unknown target when appropriate, and installs npm dependencies for meter-simulator and usage-dashboard by default; it supports --check-only, --skip-npm, and --skip-rust-target flags.
Update README.md to document the one-command onboarding (./scripts/onboard.sh) and the --check-only mode.
Update CONTRIBUTING.md to instruct contributors to run ./scripts/onboard.sh after cloning.
Add node_modules/ to .gitignore and make meter-simulator/scripts/setup.sh executable.
Testing
Ran a syntax check with bash -n scripts/onboard.sh, which passed.
Executed ./scripts/onboard.sh --check-only, which ran prerequisite checks successfully and reported the missing WASM target as a warning.
Ran formatting check with cargo fmt --all -- --check, which passed.
Attempted shellcheck scripts/onboard.sh but shellcheck was not installed in the environment, so linter was not executed.
Closes #84

google-labs-jules Bot and others added 2 commits July 17, 2026 18:01
- Implement `./scripts/onboard.sh` to check system requirements, configure .env files, and install JS/Rust targets and packages.
- Update README.md and CONTRIBUTING.md to include onboarding instructions.
- Add node_modules to .gitignore.
- Fix insurance_pool_demo.rs claim processing bug so that newly onboarded devs can run the example tests immediately and successfully.

Co-authored-by: gloskull <189399494+gloskull@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Developer Onboarding Script for Local Development Setup

1 participant