RASCSI/src/web
Eric Helgeson 1b17b8272c
Merge pull request #368 from akuker/manual_unzip
Bring back manual unzip
2021-10-24 11:53:14 -05:00
..
mock/bin Cleanup rascsi-web mocking for current develop (#301) 2021-10-05 20:39:26 -05:00
pwa
service-infra
static
templates Merge pull request #368 from akuker/manual_unzip 2021-10-24 11:53:14 -05:00
create_disk.py
drive_properties.json
file_cmds.py Feature afpshare in rascsi-web (#333) 2021-10-19 19:43:15 -05: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
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 Bring back manual unzip, remove automatic unzip on upload, and show only relevant controls for zip files 2021-10-22 06:42:28 -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