This application is for a school assessment of mine that requires me to create a Samba share on Raspberry PI that shares any USB sticks that are plugged into it. Which should then be accessible through the wireless hotspot that the Raspberry PI will start.
In this case rather than having a physical button and display which shows the IP address and controls the unmounting and mounting of drives. This uses a web application which I've created and uses dnsmasq (https://dnsmasq.org/) to make the virtual domain drivepi.local available.
This allows the service to be accessed from the hotspot using the url http://drivepi.local for the web app and the smb share will be located at \drivepi.local\drivepi
This Repository is a monorepo for both the backend and frontend of the app. The frontend directory contains the React frontend and the backend directory contains the Rust backend server
Variable | Default | Description |
---|---|---|
DRIVEPI_USERNAME | admin | The username to access the web panel |
DRIVEPI_PASSWORD | admin | The password to access the web panel |
DRIVEPI_PORT | 80 | The port to host the HTTP server on |
RUST_LOG | drivepi=info | Logging crate configuration |
RUST_LOG_STYLE | always | Whether to enable colored logging output |
Raspberry PI compiler toolchains for Windows https://gnutoolchains.com/raspberry/ easiest way to cross compile for the Raspberry PI from windows