This repository contains a starter template for building Tauri apps using SvelteKit with Tailwind CSS.
To use this template, run the following command:
npx degit deid84/tauri-sveltekit-admin-template <target-directory>
This will clone the template repository and copy the project to a new directory called <target-directory>
.
Before you can use this template, you will need to install the following dependencies:
All the other dependencies are already in package.json
so they will be automatically installed during next step.
- Change into the
target-directory
:
cd <target-directory>
- Install the dependencies:
npm install
- Start the development server:
npm run tauri dev
or start dev server for browser
npm run dev
This will start the development server and open a new window. The app will automatically reload whenever you make changes to the source code.
To build the app for production, run the following command:
npm run build
This will create a production build of the app in the build
directory.