This template provides a minimal setup to get React working in Vite to build your app with ease, this template provides you with how I usually structure my React project directories and preconfigured Prettier to give you good DX when developing a frontend application. This project also includes Shadcn UI and Tailwind CSS to help you build your UI as quickly as possible.
- Node.js v18.16 and up with package manager (npm, yarn, or pnpm)
- Biome.js VSC Extension (for VS Code User)
- React v18.2.0 with Typescript
- Axios (for Data Fetching)
- Tanstack Router (for Routing): https://tanstack.com/router/latest
- Tanstack Query (for Server Side State): https://tanstack.com/router/latest
- Tailwind CSS (CSS Alternative): https://tailwindcss.com/
- Shadcn (Component Library): https://ui.shadcn.com/
- Click the "Use this template" button and select "Create a new repository", after that you can change the name of the project as you like
![Screenshot 2024-02-07 at 20 35 32](https://private-user-images.githubusercontent.com/28957554/302998199-0547b4e5-be4b-46bf-824b-4a89dc276b76.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNTk0NDQsIm5iZiI6MTczOTA1OTE0NCwicGF0aCI6Ii8yODk1NzU1NC8zMDI5OTgxOTktMDU0N2I0ZTUtYmU0Yi00NmJmLTgyNGItNGE4OWRjMjc2Yjc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDIzNTkwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZiZmEyMjY3ZTAwYjExOTVhM2MyZGViODY1OGY2ZjI5NzUwMTUxY2Q2NjBiZmUzMWUxZTNlZjM1NmNjMDhmMDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.CT1ufAhYsXVI6R2HhZYIxyezHE9uJsbf23vEZfkedWM)
or, you can directly clone this repository using this command,
git clone https://github.com/FelixFern/React-Starter-Project
- Then, install all the needed dependencies using your desired package manager,
pnpm install
- After that, you can start using this template and edit as you like! and to start the project use
pnpm run dev
- Fetching Data Example ✅
- Data Pagination Example ✅
- Routing ✅
- Tanstack Router Params Usage ✅
- Custom Hooks ✅
- Biome.js for Linter ✅
- CI for Linter with Github Actions ✅
- JWT Auth Session Hooks
- Data Table Example
- Form Example
- Tanstack Path Params Usage
If you have any inputs or suggestions, add them as an Issues and we'll discuss them!
Pokemon APIs by Paul Hallet (used for data fetching example)