Prerequisites
Seção intitulada “Prerequisites”Install these tools before working on NAHPU:
Local setup
Seção intitulada “Local setup”Install Flutter using the official guide for your operating system.
Run
flutter doctorand resolve the reported issues before continuing.Janela do terminal flutter doctorInstall Rust.
Janela do terminal curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shrustc --versionDownload and run
rustup-init.exefrom rustup.rs, then verify the installation.Janela do terminal rustc --versionInstall Flutter Rust Bridge codegen.
Janela do terminal cargo install flutter_rust_bridge_codegenMake sure Cargo binaries are on your
PATH.Janela do terminal export PATH="$HOME/.cargo/bin:$PATH"Add that line to your shell config, such as
~/.zshrcor~/.bashrc.Add
%USERPROFILE%\.cargo\binto your systemPATHin Environment Variables.Clone NAHPU and get dependencies.
Janela do terminal git clone https://github.com/nahpu/nahpu.gitcd nahpuflutter pub getRun the app.
Janela do terminal flutter run
Useful commands
Seção intitulada “Useful commands”# Analyze Dart codeflutter analyze
# Run Dart testsflutter test
# Generate Drift, Riverpod, and other Dart generated codedart run build_runner build --delete-conflicting-outputs
# Generate Flutter Rust Bridge bindingsflutter_rust_bridge_codegen generate
# Run cargo check in rust/python scripts.py frb --check
# Cleaning up build artifacts. Do this regularly to save disk space.flutter clean
# For cleaning up Rust build artifacts, run this in the rust/ directory.cd rust/cargo clean