To quickly install the mbot web application, copy the following onto your linux command line. It will automatically install
-> Nginx - For serving the web app
-> Python3 - for api and cli
-> python3-pip - For api and cli setup
-> mbot-cli - To manage the web application from the command line. Use with mbot-cli
. Ex mbot-cli --help
-> mbot flask api - To help serve the web application
-> Default mbot packages - Home Page, Drive Control, Settings
bash <(curl -s https://raw.githubusercontent.com/rob102-staff/mbot-web-app/main/setup/scripts/install.sh)
Uninstalls the web app and nginx from your machine
bash <(curl -s https://raw.githubusercontent.com/rob102-staff/mbot-web-app/main/setup/scripts/uninstall.sh)
Creating packages for the mbot is rather simple. To start, run
npx mbot-package-template-engine <package-name>
cd <package-name>
mbot-cli generate-metadata
This will create a new application template for you. The app is setup using React. To preview the app, run
npm run start
To build and install the application for the mbot web app, run
npm run build
cp metadata.json build
cd build
mbot-cli install
If you would like to share a package, simply build your package, and then push the build folder to a branch named deploy, and thats it.
Included with the web app is the mbot web CLI. The cli is accessible through the command mbot-cli
.
The CLI is a management tool for mbot packages. It allows for easy installation of mbot packages, along with simple removal, and metadata generation and updates.
To see available commands, run
mbot-cli --help