Flask webapp for interacting and remotely controlling the MASCCOT robot via WiFi.
check out our contributing guidelines
check out our guide on contributing documentation
# Clone the repository and its submodules
git clone https://github.com/DVC-Viking-Robotics/webapp
cd webapp
git checkout master
git submodule update --init --recursive
# Prepare the virtual environment
pip install virtualenv
python -m venv env# Activate the virtual environment
# FOR WINDOWS
env\\Scripts\\activate.bat
# FOR LINUX
source env/bin/activate
pip install -r requirements.txtOn the Raspberry Pi, you'll need to install the picamera module via apt:
sudo apt-get install python3-picameraYou'll need to generate the secret.key file in order to enable the database for user management and place it in the secret/ folder. The secret file is for encrypting the database URI. Alternatively, you can go to webapp/config.py and set LOCAL_DATABASE to True, but you will also have to run tools/init_test_db.py in order to initialize the local database.
python -m webapp.app