Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Built a full-stack blog app with CRUD features using React, Firebase (Firestore & Auth), and Context API. Optimized performance by modularizing components and reducing the codebase by 30%. Achieved 0.8s load time via lazy loading, image compression, and efficient data fetching.

hanynan8/blog-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📰 Full-Stack Blog Application using React, Firebase & Context API

This is a full-featured blog application built with modern frontend and backend technologies. It allows users to create, edit, view, and delete blog posts with real-time data sync and secure user authentication.

🚀 Powered by React, Firebase, and Context API, this project ensures a fast, scalable, and intuitive blogging experience.


🚀 Features

  • CRUD Operations – Create, Read, Update, and Delete blog posts.
  • 🔐 User Authentication – Sign up, sign in, and sign out via Firebase Authentication.
  • 🔄 Realtime Firestore – Automatic content updates with Firebase Firestore.
  • ⚛️ Global State with Context API – No Redux needed.
  • 💡 Optimized Code – Clean structure, 30% fewer boilerplates.
  • High Performance – 0.8s average load time (tested via Lighthouse).
  • 📱 Responsive UI – Mobile-first design with modern CSS.
  • 🚀 Deploy Ready – Firebase Hosting or GitHub Pages compatible.

🛠️ Tech Stack

Technology Role
React Frontend UI and component system
Firebase Backend services (Auth, Firestore, Hosting)
Context API App-wide state management
React Router Client-side routing and navigation
CSS/SCSS Styling and responsiveness
GitHub Pages Optional deployment platform

📸 Screenshots

(Add your app screenshots here: homepage, login, blog editor, etc.)


🧑‍💻 Getting Started

Follow these steps to run the project locally:

1️⃣ Clone the repository

git clone https://github.com/your-username/your-blog-project.git
cd your-blog-project
### 2️⃣ Install dependencies
```bash
npm install

### 3️⃣  Run the development server
npm start

### 4️⃣ Install Firebase CLI

npm install -g firebase-tools
### 5️⃣ Login to Firebase

firebase login

### 6️⃣ Initialize Firebase project

firebase init


✅ Select "Firestore", "Hosting", and "Authentication" when prompted.
✅ Choose build as your public directory if using npm run build.

### 7️⃣ Build and Deploy

npm run build
firebase deploy

🌐 GitHub Pages Deployment (Optional)

1️⃣ Install gh-pages package

npm install gh-pages --save-dev

2️⃣ Add deployment scripts to package.json"homepage": "https://your-username.github.io/your-blog-project",
"scripts": {
  "predeploy": "npm run build",
  "deploy": "gh-pages -d build"
}


3️⃣ Deploy

npm run deploy



📈 Performance Optimization:

✅ Refactored and reduced codebase size by ~30%.
⚡ Lazy-loaded non-critical components.
🖼️ Optimized image sizes and enabled browser caching.
🚀 Achieved average load time of 0.8s (via Lighthouse testing).

📚 Learn More
React Documentation

Firebase Docs

Context API Guide

Create React App Docs

👤 Author
Hany Younan
Frontend Developer | React Enthusiast
GitHub: @hanynan8
Upwork: upwork.com/freelancers/~01999a6834f779f66d

About

Built a full-stack blog app with CRUD features using React, Firebase (Firestore & Auth), and Context API. Optimized performance by modularizing components and reducing the codebase by 30%. Achieved 0.8s load time via lazy loading, image compression, and efficient data fetching.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published