web-compiler: Contains everything required to compile a project for DaisyDub. This includes the python-software to execute the compilation and the required libraries for compilation:
- DaisySP
- libDaisy
- Dubby.h
- DspBlock.h
All files of the web-compiler should be changed with caution!
playground: Contains a playground, to test your DspBlock implementations on either the DaisySeed or DaisyDub.
In order for the project to run, both web-compiler and web-interface must be set up and running simultaneously.
The web-compiler takes care of the configuration of the various tools required to generate and compile C++ code for the Dubby. The base image of the container is a raw Ubuntu image, to which the build tools, the ARM toolchain and the webserver are later added.
- Docker
- Change current directory with
cd web-compiler
- Download ARM Toolchain in the current directory
- Build the image with
docker build -t webcompiler .
- Run the image interactively with
docker run -i -p 5000:5000 webcompiler
- In order to run the same image detached from the terminal substitute
-i
with-d
. - For M1 users, on step 3, use
docker build -t webcompiler . --platform linux/x86_64
. - In case Docker Desktop is used you might have some problems with deprecated commands. If installed,. you can use
buildx
, withdocker buildx build -t webcompiler .
.
The web interface consists of a React app. Make sure that your browser is updated and avoid running it inside a virtual machine, otherwise WebUSB might not be available for use.
- NodeJS
- Node Package Manager (NPM)
- Change current directory with
cd web-interface
- Run the installation of packages with
npm i
- Run the application with
npm start
- Browse to localhost:3000