A modern desktop application template combining Tauri's Rust backend with a Next.js frontend, featuring Sass styling and TypeScript support. Use this repository as a template for you next multi-platform desktop application.
- Tauri - Build smaller, faster, and more secure desktop applications
- Next.js - React framework for server-side rendering and static generation
- TypeScript - Type-safe JavaScript development
- Sass - Professional-grade CSS extension
- ESLint - Code quality and consistency
- Pre-configured - Ready-to-develop template
Before you begin, ensure you have the following installed:
This template was generated via the command
npm create tauri-app@latest-
Clone the repository
git clone https://github.com/your-username/your-repo.git cd your-repo -
Install dependencies
npm install # or yarn install -
Development mode
npm run tauri dev # or yarn tauri dev -
Production build
npm run tauri build # or yarn tauri build
├── src-tauri/ # Tauri backend (Rust)
├── src/ # Next.js frontend
│ ├── app/ # App router structure
│ └── ...
├── public/ # Static assets
├── .eslintrc.js # ESLint configuration
├── next.config.js # Next.js configuration
├── tsconfig.json # Typescript configuration
└── ...dev: Start development server (Next.js + Tauri)build: Create production buildtauri dev: Tauri development modetauri build: Tauri production buildlint: Run ESLintlint:fix: Run ESLint with auto-fixing
This template includes Sass support out of the box. Import your .scss files directly in your components:
// styles/main.scss
$primary-color: #3498db;
.container {
color: $primary-color;
}// In your component
import styles from '../styles/main.scss';All files are configured for TypeScript. Example component:
interface Props {
title: string;
}
const MyComponent: React.FC<Props> = ({ title }) => {
return <h1>{title}</h1>;
};Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Replace
your-username/your-repowith your actual GitHub repository path - Add any additional features or configurations specific to your template
- Include screenshots or gifs if you want to showcase the template
- Add a "Roadmap" section if you have planned features
- Include troubleshooting tips for common setup issues