cd Electronnpm installnpm run buildThis will automatically reload the app if changes are made into Electron or React App.
npm startUsing this mode breakpoints in VSCODE will be triggered
- Launch VSCODE debug script
Electron: All - Launch browser:
chromium --remote-debugging-port=9223 --user-data-dir=remote-debug-profile. Replacechromiumwith the path of your browser executable - Go to
localhost:1212on the launched chromium based browser - Refresh using F5 until the program stops at the selected breakpoint (this may require multiple refreshes).
It's necessary to have Backend running for accesing certain parts of the interface. You can launch Backend for frontend development using the following commands:
cd Backend/docker/;
./build_and_up_dev_standalone.shYou can select a custom music player dependending if the song architecture is managed by regular or serverless streaming. By default BLOB architecture service is selected.
cd Electron/src/global/global.ts
We have to selected if we want. Backend should also have the same architecture selected in order for songs to be played correctly.
The app ships with this architecture as the default
export const songArchitecture: SongArchitecture = SongArchitecture.BLOB_ARCHITECTUREexport const songArchitecture: SongArchitecture = SongArchitecture.SERVERLESS_ARCHITECTURE