Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Latest commit

 

History

History
74 lines (52 loc) · 2.02 KB

README.md

File metadata and controls

74 lines (52 loc) · 2.02 KB

MBot Web Application

This page contains the current mbot web application

Quick Install

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)

Quick Uninstall

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 a new mbot package

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

Deploy a package to github

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.

Using the Mbot CLI

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