A simple, flexible and batteries-included starter template to kickstart your React projects with ease.
- Typescript for type safe and scalable React app
- React.js as the library for building frontend application
- Tanstack Router for type-safe and flexible client-side routing for React app
- Tailwind CSS for styling
- Shadcn UI as the UI component library
- Vite for fast and optimized development and production build
- Biome for formatting and linting
- pnpm as fast, efficient package-manager
- Clone the repository
git clone https://github.com/rahulpeacock/react-vite-stack.git - Navigate to the directory
cd react-vite-stack - Configure the environment variables
cp .env.example .env.development.local - Create the certificates for
httpswhich is configured in thevite.config.ts - Install dependencies
pnpm install
- Starting the development server
pnpm dev - This will launch the app in development mode. Open https://localhost:3000 to view it in the browser.
Make sure you have Node.js and pnpm installed in your machine
- Copy the environment variables
cp .env.example .env.production.local - Build the application
pnpm build - Serve the
distdirectory using nginx as an SPA
- Setup the environment variables and cloudflare api token at GitHub secrets > Actions
- Use the workflow
.github/workflows/deploy-pages.yaml
If you found this project helpful or enjoyed using it, please consider giving it a ⭐️ on GitHub! It helps others find the project and motivates us to keep improving.