Skip to content

imfunniee/tnt-template

Repository files navigation

🚀 TNT Template (Tauri + Next + Turbo)

A blazing-fast monorepo template combining Tauri, Next.js, and Turborepo for building modern cross-platform applications. Built with performance and developer experience in mind.

✨ Features

  • 🏗️ Monorepo Setup powered by Turborepo
  • ⚡ Tauri for native desktop applications
  • 🎯 Next.js for web applications
  • 🎨 Tailwind CSS for styling
  • 🧩 shadcn/ui for beautiful, accessible components
  • 📦 Shared UI component library
  • 🔧 Consistent ESLint configuration
  • 📝 Unified TypeScript configuration
  • 🔄 Fast refresh and HMR
  • 🛠️ Type-safe development

📁 Project Structure

tnt-template/
├── apps/
│ ├── desktop/ # Tauri desktop application
│ └── web/ # Next.js web application
├── packages/
│ ├── eslint-config/ # Shared ESLint configurations
│ ├── typescript-config/ # Shared TypeScript configurations
│ └── ui/ # Shared UI component library
├── .gitignore
├── package.json
└── turbo.json

🚀 Getting Started

Prerequisites

  • Node.js 18 or later
  • pnpm 8 or later
  • Rust toolchain (for Tauri)
    • Windows: Microsoft Visual Studio C++ Build Tools
    • macOS: Xcode Command Line Tools
    • Linux: build-essential package

Installation

  1. Clone the repository: git clone https://github.com/imfunniee/tnt-template xyz cd xyz

  2. Install dependencies: pnpm install

  3. Start development:

Development

pnpm web:dev # Start Next.js development server
pnpm desktop:dev # Start Tauri development

Building

pnpm web:build # Build web application
pnpm desktop:build # Build desktop application

Utilities

pnpm clean-compile # Clean all build outputs using Turbo
pnpm format # Format code with Prettier
pnpm sort:package # Sort package.json files
pnpm spellcheck # Run spellcheck on TypeScript files

🛠️ Tech Stack

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A template for Tauri + Next + Turbo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published