Skip to content
ThanuMahee12 edited this page Oct 19, 2025 · 3 revisions

Firebase React Template

Welcome to the Firebase React Template wiki! This template provides a production-ready foundation for building modern web applications with React, Firebase, and Redux.

πŸš€ Quick Start

# 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

πŸ“š Documentation

Getting Started

Configuration

Deployment

Advanced Topics

✨ Features

  • ⚑️ 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

πŸ› οΈ Technology Stack

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

πŸ“¦ What's Included

Firebase Services

  • 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

Configuration Files

  • 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

Project Structure

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

🎯 Use Cases

This template is perfect for:

  • πŸ“± SaaS Applications
  • πŸ›’ E-commerce Platforms
  • πŸ“Š Dashboard Applications
  • πŸ‘₯ Social Media Apps
  • πŸ“ Content Management Systems
  • πŸŽ“ Educational Platforms

πŸ”— Quick Links

🚦 Development Workflow

  1. Setup - Follow the Setup Guide to configure Firebase
  2. Develop - Use npm run dev for hot-reload development
  3. Build - Run npm run build to create production build
  4. Deploy - Deploy with firebase deploy or use GitHub Actions for CI/CD

πŸ“Š Free Tier Limits

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.

πŸ’‘ Getting Help

🀝 Contributing

This is an open-source template designed for community use. Contributions are welcome! See CONTRIBUTING.md for guidelines.

πŸ“„ License

This project is open source and available under the MIT License.


Ready to build something amazing? Start with the Setup Guide β†’

πŸ“– Documentation

Getting Started

Configuration

Advanced Topics

Deployment


πŸ”— Quick Links


⚑ Tech Stack

  • React 19
  • Vite
  • Firebase 12
  • Redux Toolkit
  • React Router

Clone this wiki locally