RASCSI/src/web
2021-10-24 11:07:26 -07:00
..
mock/bin Cleanup rascsi-web mocking for current develop (#301) 2021-10-05 20:39:26 -05:00
pwa RaSCSI logo favicons (#237) 2021-09-19 14:36:43 -07:00
service-infra Fix language in 502 page 2021-09-24 13:30:59 -07:00
static Display image properties inline in the image list, and remove the previous UI 2021-10-23 23:00:40 -07:00
templates Fix zipfile handling 2021-10-24 10:27:44 -07:00
create_disk.py Black code formatting 2021-02-01 11:39:50 -06:00
drive_properties.json Fix DEC vendor strings 2021-09-29 07:07:49 -07:00
file_cmds.py Fix incorrect path to zip file to unzip; improve error handling 2021-10-24 11:07:26 -07:00
pi_cmds.py Restart monitor_rascsi from the Web UI (#341) 2021-10-19 17:58:30 -07:00
ractl_cmds.py Show image size under DEVICE INFO (#314) 2021-10-13 19:56:53 -05:00
README.md Cleanup rascsi-web mocking for current develop (#301) 2021-10-05 20:39:26 -05:00
requirements.txt Improve error handling of unzip method; clean up unused code 2021-09-24 13:30:59 -07:00
settings.py Feature afpshare in rascsi-web (#333) 2021-10-19 19:43:15 -05:00
start.sh Fix script errors in easyinstall.sh (#297) 2021-10-07 18:00:49 -07:00
web.py Fix incorrect path to zip file to unzip; improve error handling 2021-10-24 11:07:26 -07: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 Linux command responses. TODO: rascsi-web uses protobuf commands to send and receive data from rascsi. A separate mocking solusion will be needed for this interface.

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