-
Notifications
You must be signed in to change notification settings - Fork 0
Home
ThanuMahee12 edited this page Oct 19, 2025
·
3 revisions
Welcome to the Firebase React Template wiki! This template provides a production-ready foundation for building modern web applications with React, Firebase, and Redux.
# Clone the repository
git clone https://github.com/ThanuMahee12/firebase-react-template.git
cd firebase-react-template
# Install dependencies
npm install
# Copy environment variables
cp .env.example .env
# Start development server
npm run dev- Setup Guide - Complete installation and configuration guide
- Project Structure - Understanding the codebase
- Development Workflow - Best practices and workflow
- Firebase Configuration - Set up Firebase services (Auth, Firestore, Storage)
- Email Templates - Customize Firebase authentication emails
- Deployment Guide - Deploy to Firebase Hosting
- GitHub Actions CI/CD - Automated deployment setup
- Firebase Limitations - Free tier quotas and optimization
- API Reference - Complete API documentation
- β‘οΈ Vite - Lightning fast build tool with HMR
- βοΈ React 19 - Latest React with modern hooks
- π₯ Firebase - Authentication, 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
| Category | Technology |
|---|---|
| Frontend Framework | React 19.1.1 |
| Build Tool | Vite (Rolldown variant) |
| 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 |
- Authentication - Email/Password, Google Sign-in, Password reset, Email verification
- Firestore Database - NoSQL cloud database with real-time updates
- Storage - File uploads with user-specific folders
- Hosting - Fast CDN delivery with automatic SSL
- Security Rules - Pre-configured Firestore and Storage rules
-
firebase.json- Firebase hosting, Firestore, and Storage config -
firestore.rules- Firestore security rules with authentication checks -
storage.rules- Storage security rules with file size/type validation -
.firebaserc- Firebase project configuration -
.env.example- Environment variables template
src/
βββ components/ # Reusable UI components
βββ pages/ # Page components
βββ layouts/ # Layout wrappers
βββ routes/ # Route configuration
βββ slices/ # Redux Toolkit slices
βββ store/ # Redux store configuration
βββ firebase/ # Firebase initialization and config
βββ hooks/ # Custom React hooks
βββ utils/ # Helper functions
βββ styles/ # CSS files
Root Files:
βββ firebase.json # Firebase configuration
βββ firestore.rules # Database security rules
βββ storage.rules # Storage security rules
βββ .env.example # Environment template
βββ CLAUDE.md # AI assistant guidance
This template is perfect for:
- π± SaaS Applications
- π E-commerce Platforms
- π Dashboard Applications
- π₯ Social Media Apps
- π Content Management Systems
- π Educational Platforms
- Setup - Follow the Setup Guide to configure Firebase
-
Develop - Use
npm run devfor hot-reload development -
Build - Run
npm run buildto create production build -
Deploy - Deploy with
firebase deployor use GitHub Actions for CI/CD
Firebase Free (Spark) Plan includes:
- Firestore: 1GB storage, 50k reads/day, 20k writes/day
- Storage: 5GB storage, 1GB downloads/day
- Hosting: 10GB storage, 360MB/day bandwidth
- Authentication: Unlimited users
See Firebase Limitations for optimization strategies.
- π Start with the Setup Guide
- π§ Check API Reference for code examples
- π Report Issues
- π¬ Join Discussions
- π§ Customize Email Templates for authentication
This is an open-source template designed for community use. Contributions are welcome! See CONTRIBUTING.md for guidelines.
This project is open source and available under the MIT License.
Ready to build something amazing? Start with the Setup Guide β
Firebase React Template | Made with β€οΈ | GitHub | Report Issues
Getting Started
Configuration
Advanced Topics
Deployment
- React 19
- Vite
- Firebase 12
- Redux Toolkit
- React Router