Skip to content

Tauri + Vite + Vue 3 + Vuetify 3 desktop app template

Notifications You must be signed in to change notification settings

josiahdowdy/pomogame-vite-tauri

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To Do

  • Routing pages
  • Start timer
  • Edit timer settings
  • Create markdown export for Obisidian notes
  • Markdown graph charts
  • Bottom navbar

Goal

A pomodoro timer with a todo list. Add stat points after each finished session, and level up your character.

  • Spine animations.
    • Water flowing down
    • Creatures
  • Mini-game to play during breaks (locked during work sessions)

Vite Tauri Desktop Application Template

This is a starter template for those who want to make a desktop application with web technologies. This template uses the below stack.

Vite.js

Vite.js is a new modern bundler for javascript which is blazing fast and includes many sensible defaults.

Tauri

Tauri is a new modern technology to turn your web apps into a desktop app for multiple platforms (Windows, MacOS, Linux, android and ios soon). Tauri apps have very small file size and tiny memory consumption.

Vue 3

Vue.js is an incremental frontend framework which is an absolute joy to work with. It has seen very impressive improvements in version 3 including Composition Api, script setup, dynamic css binding and ... .

Vuetify 3

Vuetify is arguably the best component library for Vue 3 and is currently in alpha stage but will soon be ready for production. Lots of premade components will make your job as application developer easier and more fun.

  • Modify these files according to your app.

    • ./index.html
    • ./package.json
    • ./public/favicon.svg
    • ./src-tauri/icons/*
    • ./src-tauri/tauri.conf.json

Development

There are two ways you can develo your app.

In Browser

  • yarn serve

In Tauri Window

Launch two terminals and in

1- yarn serve:tauri

This launches Vite and configures Unified Network (which is mine) to use Tauri for api calls (to get around CORS problems).

2- yarn serve:native

This launches Tauri window and you would see your app in the native window.

Note: There are mainly 2 differences between development in browser and in Tauri window.

  • One is who executes your http calls, because when in browser, you are subject to CORS rules, but when testing in Tauri mode, Tauri's native module is executing the http calls so CORS will not be a problem.

  • Second is the renderer engine. In browsers, it is usually the latest modern engine, but in Tauri, it will be the OS's web engine, which is good, but maybe not as good as the browsers.

Building

yarn build builds web application and packages them with Tauri in "./src-tauri/target/releases".

About

Tauri + Vite + Vue 3 + Vuetify 3 desktop app template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 44.6%
  • JavaScript 29.7%
  • CSS 17.6%
  • HTML 4.7%
  • Rust 3.4%