| 1 | # splitfire-desktop |
| 2 | |
| 3 | SplitFire AI is an artificial intelligence app for music enthusiasts. This repo builds desktop version of SplitFire AI. |
| 4 | |
| 5 | ## Bazel |
| 6 | |
| 7 | Run Tauri project under bazel for more faster iteration: |
| 8 | ```bash |
| 9 | bazel run //frontend/splitfire-desktop:dev |
| 10 | ``` |
| 11 | |
| 12 | Run frontend from the local node: |
| 13 | ```bash |
| 14 | npm run next-dev |
| 15 | ``` |
| 16 | ## Local development |
| 17 | |
| 18 | Run only the web target: |
| 19 | 1. Run `rails s` on the `musik88-web` repo. |
| 20 | 2. Set `REACT_APP_SPLITFIRE_API_HOST=localhost:3001` in your `.env` file here. Local https served from port 3001. |
| 21 | 3. Run `yarn start` on this repo. |
| 22 | |
| 23 | Run the tauri development: |
| 24 | 1. Run `cargo tauri dev`. |
| 25 | 2. This will run `yarn start` under the hood as the `beforeDevCommand` command. |
| 26 | 3. Check the `tauri.conf.json` in the `src-tauri` for full settings. |
| 27 | |
| 28 | ## CI/CD |
| 29 | |
| 30 | The web build workflow is from [this tutorial](https://zellwk.com/blog/github-actions-deploy/). |
| 31 | |
| 32 | ## New framework |
| 33 | |
| 34 | [Grid layout](https://github.com/react-grid-layout/react-grid-layout) |