Giter Site home page Giter Site logo

tauri-solidjs's Introduction

Rust Typescript

A starter template for Tauri + Solid App that comes preconfigured with Vite, TypeScript, Tailwind CSS, ESLint, Prettier and HMR.

Features

  • ๐Ÿคฉ Tauri - Build smaller, faster, and more secure desktop and mobile applications with a web frontend.

  • โšก๏ธ Solid & Vite - Simple and performant reactivity for building user interfaces.

  • ๐ŸŽจ Tailwind CSS - A utility-first CSS framework for rapid UI development.

  • ๐Ÿ’ช TypeScript - it's JavaScript with syntax for types.

  • ๐Ÿ‘Œ ESLint + Prettier - ESLint find problems in your code and Prettier format your code for an easy life.


Getting started

GitHub Template

Create a repo from this template on GitHub

Clone to local

If you prefer to do it manually with the cleaner git history

npx degit AR10Dev/tauri-solid-ts-tailwind-vite my-app
cd my-app
npm install # or pnpm install or yarn install

Note

For use Tauri you need to Setup your environment following this guide

Checklist

When you use this template, follow the checklist to update your info properly

  • Rename name, version and author field in package.json
  • Rename name, version, description, authors and repository field in src-tauri/Cargo.toml
  • Change the author name in LICENSE
  • Clean up the READMEs
  • Optional: Remove the .github folder which contains the github action for cross compilation
  • Enjoy ๐Ÿ˜‰

Usage

Development

npm run dev # or pnpm dev or yarn dev

Runs the app in the development mode.

The first time you run this command, it will take several minutes for the Rust package manager to download and build all the required packages. Since they are cached, subsequent builds will be much faster, as only your code will need rebuilding.

If you make edits to the page in the webview should update automatically just like a browser will reload.
When you make edits to the Rust files, they will be rebuilt automatically and your app will restart.

Build

npm run build # or pnpm build or yarn build

Builds Solid to the dist folder and after will embed it into a single binary with your Rust code.
The binary itself will be located in src-tauri/target/release/[app name], and installers will be located in src-tauri/target/release/bundle/

Like the dev command, the first time you run this, it will take some time to collect the Rust crates and build everything - but on subsequent runs it will only need to rebuild your code, which is much quicker.

It correctly bundles Solid in production mode and optimizes the binary for the best performance.

๐ŸŽ‰ Congratulations, your app is ready to be release!

Custom App Icon

To generate your custom app icon you can follow this guide.
Your new app icons will be located in src-tauri/icons/ and remeber to update the icon field in src-tauri/tauri.conf.json with all your new icon path name.

Customize the tauri.conf.json

To modify and personalize your app, you need to modify src-tauri/tauri.conf.json by following this guide

tauri-solidjs's People

Contributors

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