Test Locally
To test your changes on a Raspberry Pi without building Docker images, you can use the development setup mode. This runs the Admin Panel directly on the host using npm run dev, allowing for faster testing.
Prerequisites
- A Raspberry Pi with Raspberry Pi OS installed.
- SSH access to the Pi.
- Your fork of the repository with your changes pushed to a branch.
Steps
-
Clone your fork and checkout your branch:
SSH into your Raspberry Pi and run:
-
Run the setup in Development Mode:
Navigate to the setup directory and run the script with the
--devflag:This will:
- Install Node.js (v20) if missing.
- Install
npmdependencies for the Admin Panel. - Configure the
admin-panel-devsystemd service to run vianpm run dev(instead of Docker). - Disable the production Docker service.
-
Generate Admin Credentials:
If you haven't already, generate the login credentials for the Admin Panel:
-
Reboot:
Reboot the Pi to start the Kiosk Browser and the Admin Panel service:
Verification
After rebooting, the Kiosk Browser should launch. You can access the Admin Panel from another computer on the same network:
- URL:
http://<RASPBERRY_PI_IP> - Login: The credentials you generated in step 3.
Since the Admin Panel is running with npm run dev, any changes you make to the files in ~/raspberry-pi-chromium-kiosk/admin-panel on the Pi will be reflected immediately (or after a page refresh).