RASCSI/src/web
Daniel Markstedt 8fb8a42825
Hide controls when appropriate (#327)
* Hide image file controls when it is attached

* Hide device actions when no device is attached
2021-10-14 19:49:06 -05:00
..
mock/bin Cleanup rascsi-web mocking for current develop (#301) 2021-10-05 20:39:26 -05:00
pwa
service-infra
static Hidden help text for each section 2021-09-28 13:39:08 -07:00
templates Hide controls when appropriate (#327) 2021-10-14 19:49:06 -05:00
create_disk.py
drive_properties.json Fix DEC vendor strings 2021-09-29 07:07:49 -07:00
file_cmds.py Fix image dir paths that was broken by refactoring (#329) 2021-10-14 19:47:33 -05:00
pi_cmds.py
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 Inquire the server about current image dir (#313) 2021-10-13 19:54:29 -05:00
start.sh Fix script errors in easyinstall.sh (#297) 2021-10-07 18:00:49 -07:00
web.py Hide controls when appropriate (#327) 2021-10-14 19:49:06 -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 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