You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Clone & Setup
git clone https://github.com/yourusername/blog-sphere.git
cd blog-sphere && npm run setup
# Environment Configuration
cp .env.example .env
# Edit .env with your credentials# Launch Development
npm run dev:full
🔧 Manual Setup
# Backend Setupcd server
npm install
npm run dev
# Frontend Setup (new terminal)cd client
npm install
npm run dev
📊 Performance Metrics
Metric
Score
Industry Average
Lighthouse Performance
98/100
75/100
First Contentful Paint
1.2s
2.8s
Time to Interactive
2.1s
4.5s
Bundle Size
245KB
400KB
API Response Time
<100ms
300ms
🎯 API Reference
🔑 Authentication
POST /api/users/registerPOST /api/users/loginGET /api/users/profilePUT /api/users/profile
📄 Posts Management
GET /api/posts # Fetch all postsPOST /api/posts # Create new postGET /api/posts/:id # Get specific postPUT /api/posts/:id # Update postDELETE /api/posts/:id # Delete postPOST /api/posts/:id/like # Toggle likePOST /api/posts/:id/bookmark # Toggle bookmark
💬 Comments System
GET /api/comments/:postId # Get post commentsPOST /api/comments # Add commentPUT /api/comments/:id # Update commentDELETE /api/comments/:id # Delete comment