This repository provides a powerful template combining SvelteKit with Rolldown, Tauri using Servo, Biome, Tailwind CSS, ShadCn, and Bun. This setup is designed for developers looking to build modern web applications with a focus on performance and flexibility.
To get started with this template, clone the repository and install the necessary dependencies.
git clone https://github.com/Gatmovis/template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun.git
cd template-sveltekit-rolldown-tauri-servo-biome-tailwind-shadcn-bun
Use Bun to install the dependencies:
bun install
Start the development server with the following command:
bun run dev
You can view your application at http://localhost:3000
.
To build your application for production, use the following command:
bun run build
This command will create an optimized version of your application in the build
directory.
To create a Tauri application, you will need to set up Tauri in your project. Follow these steps:
Install Tauri CLI: If you haven't already, install the Tauri CLI globally:
cargo install tauri-cli
Initialize Tauri: Run the following command to initialize Tauri in your project:
tauri init
Run Tauri: You can now run your Tauri application:
tauri dev
This template uses Tailwind CSS for styling. You can customize your styles by editing the tailwind.config.js
file. To apply styles, use the utility classes provided by Tailwind.
ShadCn offers a collection of pre-built components that integrate seamlessly with Tailwind CSS. To use these components, simply import them into your Svelte files.
Example:
<script>
import { Button } from 'shadcn-svelte';
</script>
<Button variant="primary">Click Me</Button>
You can extend this template by adding new features or components. Here are some ideas:
To ensure your application works as expected, write tests using your preferred testing framework. This template does not include tests by default, so you will need to set up your testing environment.
For deployment, you can use platforms like Vercel, Netlify, or GitHub Pages. Make sure to follow the specific instructions for each platform.
For the latest releases and updates, visit the Releases section. Download and execute the latest version to stay up-to-date.
This repository covers the following topics:
Contributions are welcome! If you have ideas for improvements or new features, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For questions or support, please reach out via the repository's issue tracker.
For further information, refer to the Releases section. Download and execute the latest version to leverage all the features of this template.