Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmartBlog AI

A full-stack web application that uses OpenAI's GPT API to generate SEO-optimized blog posts with real-time editing capabilities.

📸 Screenshot

SmartBlog AI Application

SmartBlog AI - AI-Powered Blog Generation Platform

SmartBlog AI Node.js React MongoDB

🚀 Features

✅ Phase 1 - Complete

  • 🔐 User Authentication (Register/Login/JWT)
  • 🧠 AI Blog Generator with customizable parameters (GPT-4)
  • 📊 SEO Analysis with readability scores and keyword density
  • 🎨 Modern UI with Tailwind CSS and responsive design
  • 🛡️ Security with rate limiting, CORS, and input validation
  • 📱 Dashboard with AI generation and blog management

🚧 Phase 2 - Coming Next

  • ✍️ Rich Text Editor (Quill.js integration)
  • 📚 Blog Management (Full CRUD interface)
  • 🔍 Advanced SEO Tools (Visual analysis and suggestions)
  • 📤 Export Features (TXT, MD, HTML formats)
  • 👤 Profile Management (Settings and password change)
  • 🔄 Version Control (Blog revision history)

🛠️ Tech Stack

  • Frontend: React.js + Tailwind CSS + React Router + React Query
  • Backend: Node.js + Express.js + MongoDB + Mongoose
  • Authentication: JWT + bcrypt
  • AI: OpenAI GPT-4 API
  • Development: VS Code tasks, nodemon, ESLint

📦 Quick Start

Prerequisites

  • Node.js (v16+)
  • MongoDB (local or Atlas)
  • OpenAI API key

1. Installation

# Clone the repository
git clone <repository-url>
cd SmartBlog AI

# Install backend dependencies
cd backend
npm install

# Install frontend dependencies
cd ../frontend
npm install

2. Environment Setup

Create .env files in both backend and frontend directories:

Backend (.env)

NODE_ENV=development
PORT=5000
MONGODB_URI=mongodb://localhost:27017/smartblog-ai
JWT_SECRET=your_super_secret_jwt_key_here
OPENAI_API_KEY=your_openai_api_key_here
CLIENT_URL=http://localhost:3000

Frontend (.env)

REACT_APP_API_URL=http://localhost:5000/api
REACT_APP_APP_NAME=SmartBlog AI

3. Run the Application

Option A: VS Code Tasks (Recommended)

  1. Open in VS Code
  2. Press Ctrl+Shift+P → "Tasks: Run Task" → "Start Full Stack"

Option B: Manual

# Terminal 1 - Backend
cd backend
npm run dev

# Terminal 2 - Frontend  
cd frontend
npm start

4. Access the App

� Detailed Setup Guide

For comprehensive setup instructions, environment configuration, and troubleshooting, see SETUP.md.

🎯 Usage

  1. Register/Login to create an account
  2. Generate blogs using the AI-powered form:
    • Enter your topic or keywords
    • Choose tone (professional, casual, witty, etc.)
    • Set word count (500-2000 words)
    • Add specific keywords
    • Click "Generate Blog"
  3. Save and edit generated content
  4. Analyze SEO performance with built-in tools

🏗️ Project Structure

SmartBlog AI/
├── backend/                 # Node.js Express API
│   ├── models/             # MongoDB schemas (User, Blog)
│   ├── routes/             # API endpoints (auth, blogs, ai, seo)
│   ├── middleware/         # Auth, validation, error handling
│   └── server.js           # Express server configuration
├── frontend/               # React application
│   ├── src/
│   │   ├── components/    # Reusable UI components
│   │   ├── pages/         # Page components
│   │   ├── contexts/      # React context (Auth)
│   │   ├── utils/         # API utilities
│   │   └── index.css      # Tailwind styles
│   └── public/            # Static assets
└── .vscode/
    └── tasks.json         # Development tasks

🔌 API Endpoints

Authentication

  • POST /api/auth/register - User registration
  • POST /api/auth/login - User login
  • GET /api/auth/me - Get user profile
  • PUT /api/auth/profile - Update profile
  • POST /api/auth/change-password - Change password

Blogs

  • GET /api/blogs - Get blogs (with filtering)
  • GET /api/blogs/:id - Get single blog
  • POST /api/blogs - Create new blog
  • PUT /api/blogs/:id - Update blog
  • DELETE /api/blogs/:id - Delete blog
  • GET /api/blogs/:id/export - Export blog

AI Generation

  • POST /api/ai/generate - Generate blog content
  • POST /api/ai/improve - Improve existing content
  • POST /api/ai/title-suggestions - Get title suggestions
  • GET /api/ai/usage - Get usage statistics

SEO Analysis

  • POST /api/seo/analyze - Analyze content for SEO
  • POST /api/seo/keywords - Extract keywords
  • GET /api/seo/readability-guide - Get readability guide

🚦 Current Status

Phase 1 Complete ✅

  • Full authentication system
  • AI blog generation working
  • SEO analysis functional
  • Modern responsive UI
  • Secure API with rate limiting

Ready for Phase 2 🚧

  • Rich text editor integration
  • Advanced blog management
  • Enhanced SEO tools
  • Export functionality

🧪 Testing

  1. Visit the landing page
  2. Register a new account
  3. Try the AI blog generator with different parameters
  4. Check the generated content quality
  5. Test authentication flow

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

📄 License

This project is licensed under the MIT License.

🆘 Support

For issues, questions, or feature requests:

  1. Check the SETUP.md guide
  2. Review the API documentation above
  3. Create an issue in the repository

Built with ❤️ for content creators everywhere.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages