A production-ready React + Vite template with Firebase integration, Redux state management, and automated deployment. Perfect for building modern web applications quickly.
- ⚡️ Vite - Lightning-fast build tool with HMR
- ⚛️ React 19 - Latest React with modern hooks
- 🔥 Firebase Ready - Pre-configured for Auth, Firestore, Storage, and Hosting
- 🎨 Redux Toolkit - Simplified state management
- 🧭 React Router - Client-side routing
- 🎯 React Icons - Popular icon library
- 📝 ESLint - Code quality and consistency
- 🔒 Security Rules - Pre-configured Firestore and Storage rules
- 🚀 GitHub Actions - Automated CI/CD deployment
- 📚 Comprehensive Docs - Complete wiki documentation
- Node.js 18+ and npm/yarn
- Firebase account
- Git
git clone https://github.com/ThanuMahee12/firebase-react-template.git
cd firebase-react-templatenpm install
# or
yarn install# Copy the example env file
cp .env.example .env
# Add your Firebase credentials to .envGet your Firebase config from Firebase Console → Project Settings → General → Your apps
Edit .firebaserc:
{
"projects": {
"default": "your-firebase-project-id"
}
}npm run devVisit http://localhost:5173
Complete documentation available in the Wiki:
- 📖 Setup Guide - Detailed installation instructions
- 🏗️ Project Structure - Understanding the codebase
- 🔥 Firebase Configuration - Set up Firebase services
- 🚀 Deployment Guide - Deploy to Firebase Hosting
- ⚙️ GitHub Actions CI/CD - Automated deployments
- 📧 Email Templates - Customize Firebase auth emails
- 📊 Firebase Limitations - Free tier quotas and limits
- 🔌 API Reference - Complete API documentation
| Category | Technology | Version |
|---|---|---|
| Frontend Framework | React | 19.1.1 |
| Build Tool | Vite (Rolldown) | 7.1.14 |
| State Management | Redux Toolkit | 2.9.1 |
| Routing | React Router DOM | 7.9.4 |
| Backend | Firebase | 12.4.0 |
| Icons | React Icons | 5.5.0 |
| Linting | ESLint | 9.36.0 |
firebase-react-template/
├── public/ # Static files
├── src/
│ ├── assets/ # Images, icons, fonts
│ ├── components/ # Reusable React components
│ ├── pages/ # Page components
│ ├── layouts/ # Layout wrappers
│ ├── routes/ # Route configuration
│ ├── slices/ # Redux Toolkit slices
│ ├── store/ # Redux store
│ ├── firebase/ # Firebase config
│ │ └── config.js # Firebase initialization
│ ├── hooks/ # Custom React hooks
│ ├── utils/ # Helper functions
│ ├── styles/ # CSS files
│ ├── App.jsx # Root component
│ └── main.jsx # Entry point
├── .env.example # Environment variables template
├── .firebaserc # Firebase project config
├── firebase.json # Firebase hosting config
├── firestore.rules # Firestore security rules
├── storage.rules # Storage security rules
├── vite.config.js # Vite configuration
└── CLAUDE.md # AI assistant guidance
- Email/Password authentication
- Google Sign-in
- Password reset
- Email verification
- NoSQL cloud database
- Real-time updates
- Security rules configured
- File uploads
- User-specific folders
- Security rules configured
- Fast CDN delivery
- Automatic SSL
- Custom domain support
# Development
npm run dev # Start dev server
npm run build # Build for production
npm run preview # Preview production build
npm run lint # Run ESLint
# Firebase
firebase login # Login to Firebase
firebase deploy # Deploy everything
firebase deploy --only hosting # Deploy hosting only
firebase deploy --only firestore # Deploy Firestore rules# Build the app
npm run build
# Deploy to Firebase
firebase deployYour app will be live at https://your-project-id.web.app
Set up automated deployments on every push:
- Follow the GitHub Actions guide
- Add Firebase secrets to GitHub
- Push to main branch
- Automatic deployment!
Perfect for building:
- 📱 SaaS Applications
- 🛒 E-commerce Platforms
- 📊 Dashboard Applications
- 👥 Social Media Apps
- 📝 Content Management Systems
- 🎓 Educational Platforms
- 💼 Business Tools
Contributions are welcome! Please read CONTRIBUTING.md for details.
This project is licensed under the MIT License - see the LICENSE file for details.
- React - UI framework
- Vite - Build tool
- Firebase - Backend platform
- Redux Toolkit - State management
- React Router - Routing library
Found a bug? Please open an issue.
Have questions? Join the discussions.
Built with ❤️ for the developer community