Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tahasintonmoy2/rust-task
Todo list app for desktop
https://github.com/tahasintonmoy2/rust-task
desktop desktop-app desktop-application javascript rust rust-crate todo todo-app todolist todolist-application typescript
Last synced: about 1 month ago
JSON representation
Todo list app for desktop
- Host: GitHub
- URL: https://github.com/tahasintonmoy2/rust-task
- Owner: tahasintonmoy2
- License: mit
- Created: 2023-03-25T03:55:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-25T05:04:30.000Z (almost 2 years ago)
- Last Synced: 2024-11-06T23:06:26.654Z (3 months ago)
- Topics: desktop, desktop-app, desktop-application, javascript, rust, rust-crate, todo, todo-app, todolist, todolist-application, typescript
- Language: Rust
- Homepage:
- Size: 1.09 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rust Base App Template for AWESOME-APP
Base desktop application code with Tauri, Native Web Components, and SurrealDB (follow the VMES app architecture)
> Note: To enable persitent storage, edit the `src-tauri/Cargo.toml` to enable all `surrealdb` features.
# Hot Reload dev
For hot-reload UI and Tauri development, run the following in your VSCode from this root folder:
```sh
awesome-app dev
```> **IMPORTANT** - Requires **node.js v8 and 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
IMPORTANT: Make sure to have **node.js latest of 16** or above.
- `yarn tauri icon src-tauri/icons/app-icon.png` - This will build the application icons.
- `yarn pcss` - This will build the postcss files (`src-ui/pcss/**/*.pcss`).
- `yarn rollup` - This will build and package the typescript files (`src-ui/src/**/*.ts`).
- `yarn localhost` - This will run a localhost server with the `dist/` folder as root (frontend hot reload)
- In another terminal, `yarn tauri dev` - Will start the Tauri build and start the process.
# Troubleshooting
- Make sure to have **node.js 18** or above.
- If some cryptic errors, run the command above one by one.
- If `yarn tauri dev` commands fail, try to do:
- `cd src-tauri`
- `cargo build`
- This might be an important first step when using full surrealdb (i.e., with default features and not only kv-mem)## Requirements on fedora 36:
On Fedora, and probably linux, the following needs to be present on the system.
```sh
dnf install gtk3-devel
dnf install webkit2gtk3-jsc-devel
dnf install libsoup-devel
dnf install webkit2gtk3-devel.x86_64
```
## Happy Coding!