Skip to content

Using tauri awesome-app backend architecture with Next.js to provide front end, to create a TODO app

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

DD-UX/tauri-react

Repository files navigation

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


Rust Base App Template for AWESOME-APP

Base desktop application code with Tauri, Native Web Components NextJS, and SurrealDB (follow the VMES app architecture)

Hot Reload dev Fast refresh dev

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)

How it works

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.

Build manually

  • yarn install - This will keep node_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 exported out/ folder as root.
  • cargo build - This will update crates.
  • cargo test - This will generate backend entity models into TypeScript within src/lib/sdk/generated-models/.
  • In another terminal, cargo tauri dev - Will start the Tauri build and start the process.

Requirements on fedora 36:

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



Happy Coding!:tada::tada::tada:

About

Using tauri awesome-app backend architecture with Next.js to provide front end, to create a TODO app

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published