Mbaza is based on Electron React Boilerplate, which uses Electron, React, React Router, Webpack, React Fast Refresh.
Useful files (sample data, biomonitoring stations, icons) can be found on our Drive (Appsilon-internal; see bookmarks on the Slack channel)
To run inference in development mode (npm start
) or to build the installers (npm run package
),
you will need to download the ONNX models and place them in the assets/models
directory:
- Central African forests (Gabon)
- East African savannas (Serengeti)
- East African savannas (Ol Pejeta Conservancy)
The model file names should match the entries in src/common/models.ts
.
You can run the following commands from the project root. You'll need Node.js 16 or later on your system.
npm install
: Install dependencies.npm start
: Start the app in development mode.npm run lint
: Lint sources.npm run lint -- --fix
: Lint sources and fix errors automatically.npm run package
: Package the app for the local platform.npx cross-env DEBUG_PROD=true npm run package
: Package the app with developer tools enabled.
- Choose a new version number according to SemVer.
- Update the version in the repo:
- Edit the
release/app/package.json
file. - Update
release/app/package-lock.json
by runningnpm install
in the project root. - Make sure these changes are on the
main
branch before proceeding.
- Edit the
- Create a new release on GitHub.
- Build installers for the 3 operating systems:
- Each one needs to be built on the target system.
- Download the models and put them in the
assets/models
directory (refer to the Models section above). - Run
npm install
followed bynpm run package
. - The installer will be placed in the
release/build
directory.
- Sign the Windows installer using the code signing certificate stored in our 1Password.
- Upload the installers to the release.
- All changes are introduced in pull requests, which must be peer-reviewed before being merged.
- Tasks, design decisions, etc. are described in GitHub issues and pull requests.
- README and code comments are updated.
- Changes are tested (manually or with automated tests):
- No existing functionality is broken.
- Installed app works well on all systems.
- The app can handle our sample data.
- The code adheres to the Airbnb style guide.