Giter Club home page Giter Club logo

tauri-projects's Introduction

tauri-projects

Central repository for all learnings with Tauri & Rust Backend and Vue JS (my preferred UI framework)

Tauri version < v1.6.1

npm create tauri-app@latest
npm install --save-dev @tauri-apps/cli # npm create tauri-app@latest -- --beta
npm run tauri dev
  1. A simple boilerplate example with vanilla JS and html to call a function in Tauri using withGlobalTauri
  2. A simple boilerplate example with vite to call a function in Tauri using @tauri-apps/api, and printing from the rust backend
  3. Using control the inspector window visibility by using the Window::open_devtools and Window::close_devtools functions
  4. Example of how to use the Isolation pattern to ensure app security, but isolating the app in a sandbox. (window.__TAURI_ISOLATION_HOOK__)
  5. Example using vscode-lldb vs code extension to enable debugging in any rust file, must add .vscode/launch.json and .vscode/tasks.json
  6. An example using tauri-apps/tauri-action@v0 github action to automate building for MacOS, Windows and Linux operating systems. Check .github/workflows/build.yaml
  7. Example of tauri application getting micrphone access, with recorder which stops recording after 3 seconds of silence. Check entitlements.plist, tauri.conf.json and AudioRecorder.vue
  8. Example using crabnebula devtools (https://devtools.crabnebula.dev/dash/127.0.0.1/3000/console)
  9. Using sidecar to execute some python executable built with PyInstaller, which is run by the JS frontend. (also included dev-tools to inspect the time waterfall of the operations)
  10. Using the tauri-cli and cargo tauri icon command to change the desktop app icon.
  11. Creating a custom window menu with main.rs
  12. Saving a file from an action in frontend frontend to the machine filesystem.
  13. Using webpack to load in a Javascript plugin dynamically using the UI. (Need to fix, doesn't work in browser only window)
  14. < broken version of example13 >

Tauri version >= v2.0

Tauri has a new version coming out with additional capabilities, so separated the examples related to the latest release here:

  1. Setting up a tauri 2 project for the first time with npm create tauri-app@latest -- --beta. Using WebviewUrl to load in 3 different webviews within the one app. Also have a button on the frontend which can open up another .app file.
  2. My attempt of extending example15 with an "embedded" app window - tried overlaying the window of the binary when run on top desktop application host window and track the side of the host window so i can be programtically resized. Didn't work as planned.
  3. Embedding a WASM as a webview within a host tauri vue application - also included rust WASM backend function to be called from JS frontend. NOTE: html is rended using web_sys.
  4. Using the tauri store plugin to save and retrieve a .bin file key from the JS frontend. Files are saved to $APPDATA/ - Can be represented as BaseDirectory.AppData.
  5. Example of creating an email/password account within supabase Auth
  6. Example of logging in with an email/password account OR with Google account within supabase Auth
  7. Example of using @stripe/connect-js to create a marketplace payment structure (NOTE: need to come back to this in the future, NOTE 2: All keys in here are test keys)
  8. Example of spinning up a github action workflow using Javascript from the frontend using @octokit/core. and Github Apps - server.js in a different repo.
  9. nothing interesting here, just wanted to test out the filepath of an application for the store/binaries
  10. Getting access to private repositories via github app, and displaying the authorized repos within the form.
  11. A tauri application that incorporates an update, allowing automated updates to the app installed on users machines. This example also incorporates code signing. (So 2 different types of signing, Updater and binary code signing) - See .github/workflows/build-binary-with-updater.yaml - uses relaunch on js side from tauri-apps/plugin-process to restart the application (only works in build mode, not dev just FYI)

tauri-projects's People

Contributors

aaronward avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.