Table of Contents
AI based Drag and Drop Offboard Studio for Robotics
You will need the following installed on your machine:
gitnode >= 18.0.0npm run >= 3.6.3and a.npm runrc.ymlfile generated in both your home and the project directories. To do this you can run the following in/appand~:
This project uses npm run so after an initial npm run you can run the following scripts to use the application how you see fit.
Create a .env file using the .env.example, remember as a desktop app these can be used within the source code which could be bundled so do not store sensitive data here.
Runs the following;
- clean-release-build - removes any previous local prod builds
- build:electron - bundles both API and electron apps under one file, output -
./release/build/electron - build:renderer - bundles react code into single files for CSS, HTML and JS, output -
./release/build/renderer
- requires
npm run build:appto have been run and the resulting renderer and electron output in./release/buildto exist - packages electron app for windows and macos using electron-builder
- Runs electron app using
nx run-many -t server -p renderer electron - Runs electron app and API via nx-electron executor in project.json
- copy-build-assets-prod - copies clean assets directories for caching games and game-engines, and game meta-data on the API
- Runs all unit tests using nx -
npx nx run-many -t test -p renderer api components - All unit tests are written in Jest
- Runs playwright tests against built electron app
- Requires a build before running to run tests against latest version using
npm run build:app - Requires test login credentials for targeted environment copying over
.env.e2e.exampleto.env.e2e
- Runs;
- ESLint which is configured in .eslintrc.json
- Prettier via eslint extends which is configured in .prettierrc
- Ignored files include ./out, ./build, ./node_modules and ./docs
- This will run a CLI prompt to help you build consistent commit messages

