IMPORTANT - This is a project based in Awesome app that replaces Native Web Components with NextJS. All the credits to awesomeapp.org for this excelent backend in Rust with Tauri.
See awesomeapp.org for more info
Discord Awesome App for any questions, issues, or anything else
Base desktop application code with Tauri, Native Web Components NextJS, and SurrealDB (follow the VMES app
architecture)
For hot-reload UI and Tauri development, run the following in your VSCode from this root folder:
Fast refresh is provided by NextJS, as simple as is 😁
awesome-app dev
IMPORTANT - Requires node.js v18 or above.
This assumes
awesome-app
was installed locally (e.g.,cargo install awesome-app
)
awesome-app dev
will create an Awesome.toml
which will be the list of commands it will run (format is
self-explanatory).
You can run the commands manually if you want, or see below for list of commands.
We recommend using awesome-app dev
but running each command manually might help troubleshoot.
yarn install
- This will keepnode_modules
up to date.cargo tauri icon src-tauri/icons/app-icon.png
- This will build the application icons.next build && next export
- This will build and export Next.js project to be used by Tauri.next dev
- This will run a localhost server with the previously exportedout/
folder as root.cargo build
- This will update crates.cargo test
- This will generate backend entity models into TypeScript withinsrc/lib/sdk/generated-models/
.- In another terminal,
cargo tauri dev
- Will start the Tauri build and start the process.
On Fedora, and probably linux, the following needs to be present on the system.
dnf install gtk3-devel
dnf install webkit2gtk3-jsc-devel
dnf install libsoup-devel
dnf install webkit2gtk3-devel.x86_64