RASCSI/src/web
2021-09-27 19:32:58 -05:00
..
mock/bin
pwa
service-infra
static Customize dropzone stylesheet, adding a drop shadow to markers 2021-09-24 16:31:45 -07:00
templates Restore APPLE GENUINE; tweak other labels (#276) 2021-09-27 19:32:58 -05:00
create_disk.py
drive_properties.json Update wording 2021-09-24 13:30:59 -07:00
file_cmds.py Feature attach suggestion (#260) 2021-09-25 22:27:43 -05:00
pi_cmds.py
ractl_cmds.py Feature attach suggestion (#260) 2021-09-25 22:27:43 -05:00
README.md
requirements.txt Improve error handling of unzip method; clean up unused code 2021-09-24 13:30:59 -07:00
settings.py Feature attach suggestion (#260) 2021-09-25 22:27:43 -05:00
start.sh
web.py Feature attach suggestion (#260) 2021-09-25 22:27:43 -05:00

RaSCSI Web

Setup local dev env

# Make a virtual env named venv
$ python3 -m venv venv
# Use that virtual env in this shell
$ source venv/bin/activate
# Install requirements
$ pip install -r requirements.txt
# Use mocks and a temp dir - start the web server
$ BASE_DIR=/tmp/images/ PATH=$PATH:`pwd`/mock/bin/ python3 web.py

Mocks for local development

You may edit the files under mock/bin to simulate rascsi command responses.

Pushing to the Pi via git

Setup a bare repo on the rascsi

$ ssh pi@rascsi
$ mkdir /home/pi/dev.git && cd /home/pi/dev.git
$ git --bare init
Initialized empty Git repository in /home/pi/dev.git

Locally

$ cd ~/source/RASCSI
$ git remote add pi ssh://pi@rascsi/home/pi/dev.git
$ git push pi master