Giter Site home page Giter Site logo

clipboard-history's Introduction

tauri-t3-app

image

A clean and simple starter repo using the T3 Stack in Tauri!

Getting Started

Before we continue, make sure you have completed the prerequisites to have a working development environment.

Objective

Integrating an existing T3 project in Tauri is pretty easy. The problem arises when we scaffold a new app using create tauri-app. Instead of trying to stitch together the T3 Stack tech from scratch, one can simply use this template.

Commands

Install Deps

npm i

Run Tauri Dev

npm run tauri dev

Build App

npm run tauri build

Don't like npm? Feel free to use yarn, pnpm, or cargo. Nothing will break!

Note: Deploy your Next.js app before building your Tauri App. Remember to override the default build command so that the Vercel deploy doesn't fail.

override-vercel-build

Caveats

Tauri needs Next.js to run in SSG mode for it's native functionalities. If you don't need native stuff and simply want a web app in native, just redirect to the deployed Next.js app in your Tauri app. If you want a taste of both SSG & SSR, switch between the deployed Next.app window & native window whenever and wherever needed. Whatever you do, your Tauri app will always be less chunky than your Electron.js app.

Electron-vs-Tauri

Credits: Fireship

Learn More

  1. create-t3-app — Documentation
  2. create-tauri-app — Documentation

Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!


clipboard-history's People

Contributors

trafargarlaw 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.