Skip to content

rob102-staff/mbot-web-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published