|
| 1 | +<h1 align="center">REACT FLUKSOS TEMPLATE</h1> |
| 2 | + |
| 3 | +<p align="center"> |
| 4 | + <em>The Ultimate Senior Boilerplate for Modern React Applications</em> |
| 5 | +</p> |
| 6 | + |
| 7 | +<p align="center"> |
| 8 | + <em>Built with the tools and technologies:</em> |
| 9 | +</p> |
| 10 | + |
| 11 | +<p align="center"> |
| 12 | + <img src="https://img.shields.io/badge/Vite-646CFF?style=for-the-badge&logo=vite&logoColor=white" alt="Vite"> |
| 13 | + <img src="https://img.shields.io/badge/React_19-20232A?style=for-the-badge&logo=react&logoColor=61DAFB" alt="React 19"> |
| 14 | + <img src="https://img.shields.io/badge/TypeScript_6-007ACC?style=for-the-badge&logo=typescript&logoColor=white" alt="TypeScript"> |
| 15 | + <img src="https://img.shields.io/badge/Tailwind_CSS_v4-38B2AC?style=for-the-badge&logo=tailwind-css&logoColor=white" alt="Tailwind v4"> |
| 16 | + <img src="https://img.shields.io/badge/Shadcn_UI-000000?style=for-the-badge&logo=shadcnui&logoColor=white" alt="Shadcn UI"> |
| 17 | + <img src="https://img.shields.io/badge/Biome-60A5FA?style=for-the-badge&logo=biome&logoColor=white" alt="Biome"> |
| 18 | + <img src="https://img.shields.io/badge/TanStack_Query-FF4154?style=for-the-badge&logo=reactquery&logoColor=white" alt="TanStack Query"> |
| 19 | + <img src="https://img.shields.io/badge/TanStack_Router-FF4154?style=for-the-badge&logo=reactrouter&logoColor=white" alt="TanStack Router"> |
| 20 | + <img src="https://img.shields.io/badge/Zustand-EA4335?style=for-the-badge&logo=react&logoColor=white" alt="Zustand"> |
| 21 | + <img src="https://img.shields.io/badge/Husky-42b983?style=for-the-badge&logo=git&logoColor=white" alt="Husky"> |
| 22 | +</p> |
| 23 | + |
| 24 | +--- |
| 25 | + |
| 26 | +## 📖 Table of Contents |
| 27 | +- [Overview](#-overview) |
| 28 | +- [Why React Fluksos?](#-why-react-fluksos) |
| 29 | +- [Features](#-features) |
| 30 | +- [Getting Started](#-getting-started) |
| 31 | +- [Project Structure](#-project-structure) |
| 32 | +- [Scripts & Commands](#-scripts--commands) |
| 33 | +- [License](#-license) |
| 34 | + |
| 35 | +--- |
| 36 | + |
| 37 | +## 🚀 Overview |
| 38 | +**React Fluksos** is a meticulously crafted, enterprise-grade React template engineered for performance, type safety, and impeccable Developer Experience (DX). |
| 39 | + |
| 40 | +Designed as a definitive starting point for modern Single Page Applications (SPAs) and fast landing pages, it completely abandons legacy tools like ESLint and Prettier in favor of the blazing-fast Rust-based Biome toolchain. |
| 41 | + |
| 42 | +## 🤔 Why React Fluksos? |
| 43 | +This project aims to eliminate the painful configuration phase of modern frontend development. It enforces strict architectural boundaries, utilizes the latest major versions of all core tools, and includes a pre-configured, battle-tested `pre-commit` hook pipeline. |
| 44 | + |
| 45 | +It is the ultimate "Blank Canvas" for Senior Developers. |
| 46 | + |
| 47 | +--- |
| 48 | + |
| 49 | +## 🎯 Features |
| 50 | + |
| 51 | +- **Blazing Fast Builds**: Powered by Vite 8 and the official `@vitejs/plugin-react` (Rolldown-ready). |
| 52 | +- **Absolute Type Safety**: TypeScript 6.0 in Strict Mode, combined with `@tanstack/react-router` for 100% type-safe file-based routing. |
| 53 | +- **Modern Styling Engine**: Fully integrated with Tailwind CSS v4 (no PostCSS required) and Shadcn/ui CLI. |
| 54 | +- **State & Data Management**: Pre-configured `AppQueryProvider` (TanStack Query) with optimized caching strategies, plus a pre-wired `Axios` instance for API consumption. |
| 55 | +- **Rock-Solid DX**: Replaces ESLint/Prettier with Biome for instant formatting and linting. Enforces code quality via Husky `pre-commit` hooks and `lint-staged`. |
| 56 | +- **Built-in Theme Provider**: Elegant Dark/Light mode switching using pure Context API and Tailwind v4 variables. |
| 57 | +- **Robust Error Handling**: Global Error Boundaries and 404 Pages pre-configured at the routing root. |
| 58 | + |
| 59 | +--- |
| 60 | + |
| 61 | +## 🏁 Getting Started |
| 62 | + |
| 63 | +### Prerequisites |
| 64 | +This project demands modern tooling to run locally: |
| 65 | +- **Node.js**: v20 or higher. |
| 66 | +- **Package Manager**: Strictly `pnpm` (v9 or v10). NPM and Yarn will be rejected by engine locking. |
| 67 | + |
| 68 | +### Installation |
| 69 | + |
| 70 | +Clone the repository and set it up as your own: |
| 71 | +```bash |
| 72 | +git clone https://github.com/pasqualinigui/reactfluksos.git my-new-project |
| 73 | +cd my-new-project |
| 74 | +``` |
| 75 | + |
| 76 | +Install the dependencies: |
| 77 | +```bash |
| 78 | +pnpm install |
| 79 | +``` |
| 80 | + |
| 81 | +Configure environment variables: |
| 82 | +```bash |
| 83 | +cp .env.example .env |
| 84 | +``` |
| 85 | + |
| 86 | +### Usage |
| 87 | +Run the project locally in development mode: |
| 88 | +```bash |
| 89 | +pnpm run dev |
| 90 | +``` |
| 91 | + |
| 92 | +--- |
| 93 | + |
| 94 | +## 📁 Project Structure |
| 95 | + |
| 96 | +```text |
| 97 | +src/ |
| 98 | +├── components/ |
| 99 | +│ ├── layout/ # Global layout wrappers |
| 100 | +│ ├── providers/ # Context providers (Theme, Query) |
| 101 | +│ └── ui/ # Shadcn/ui raw components |
| 102 | +├── features/ # Domain-driven modules |
| 103 | +├── lib/ # Utility functions and API instances (Axios) |
| 104 | +├── routes/ # TanStack file-based routes |
| 105 | +├── services/ # API integration layers |
| 106 | +└── store/ # Global state (Zustand) |
| 107 | +``` |
| 108 | + |
| 109 | +--- |
| 110 | + |
| 111 | +## 💻 Scripts & Commands |
| 112 | + |
| 113 | +- `pnpm run dev`: Starts the Vite development server. |
| 114 | +- `pnpm run build`: Compiles the application for production (dist/). |
| 115 | +- `pnpm run typecheck`: Runs strict TypeScript validation without emitting files. |
| 116 | +- `pnpm run lint`: Analyzes the codebase using Biome. |
| 117 | +- `pnpm run lint:fix`: Automatically fixes linting errors and formats the code. |
| 118 | +- `pnpm run test`: Runs the Vitest test suite. |
| 119 | + |
| 120 | +--- |
| 121 | + |
| 122 | +## 📜 License |
| 123 | + |
| 124 | +Distributed under the MIT License. See `LICENSE` for more information. |
| 125 | + |
| 126 | +<p align="left"> |
| 127 | + <a href="#top">⬆️ Return to Top</a> |
| 128 | +</p> |
0 commit comments