Skip to content
RishabhDhawadPublic

About

A full-stack blog application built with React and Flask, featuring a clean and intuitive user interface for creating, reading, updating, and deleting blog posts.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ Blogify β€” Modern Full-Stack Blog Platform

A modern blogging platform built with React & Flask


πŸš€ Overview

Blogify is a modern full-stack blogging platform developed using React for the frontend and Flask for the backend.

It enables users to create, edit, delete, and explore blog posts through a clean, responsive, and user-friendly interface. The application follows a RESTful architecture, making it scalable, maintainable, and easy to extend with additional features in the future.

Whether you're building a personal blogging platform or learning full-stack web development, Blogify demonstrates best practices in React and Flask application development.

✨ Features

πŸ“ Blog Management

  • Create blog posts
  • Edit existing blogs
  • Delete blogs
  • View individual blog pages
  • Beautiful blog listing page
  • Responsive blog cards
  • Upload blog cover images
  • Image preview support
  • Featured latest blogs section

🎨 Modern User Interface

  • Clean and modern design
  • Fully responsive layout
  • Mobile-friendly interface
  • Elegant typography
  • Beautiful blog cards
  • Loading states
  • Error handling
  • Empty state UI
  • Smooth transitions and hover effects

⚑ Backend Features

  • Flask REST API
  • SQLAlchemy ORM
  • SQLite Database
  • CRUD operations
  • Image upload handling
  • JSON API responses
  • Flask-CORS support

πŸ— Architecture

  • React Frontend
  • Flask Backend
  • REST API Communication
  • SQLAlchemy ORM
  • SQLite Database

πŸ›  Tech Stack

Frontend

  • React 18
  • React Router DOM
  • Axios
  • CSS3
  • Responsive Design

Backend

  • Python
  • Flask
  • SQLAlchemy
  • SQLite
  • Flask-CORS

Tools

  • Git
  • GitHub
  • npm
  • Virtual Environment
  • VS Code

πŸ“Έ Screenshots

Home Page

Home


All Blogs

Blogs


Blog Details

Blog Details


Create Blog

Create Blog


Edit Blog

Edit Blog


πŸ“‚ Project Structure

Blogify/
β”‚
β”œβ”€β”€ client/
β”‚   β”œβ”€β”€ public/
β”‚   β”‚
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ assets/
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”œβ”€β”€ config.js
β”‚   β”‚   β”œβ”€β”€ App.jsx
β”‚   β”‚   └── main.jsx
β”‚   β”‚
β”‚   β”œβ”€β”€ package.json
β”‚   └── vite.config.js
β”‚
β”œβ”€β”€ server/
β”‚   β”œβ”€β”€ uploads/
β”‚   β”œβ”€β”€ app.py
β”‚   β”œβ”€β”€ models.py
β”‚   β”œβ”€β”€ requirements.txt
β”‚   β”œβ”€β”€ blog.db
β”‚   └── config.py
β”‚
β”œβ”€β”€ screenshots/
β”‚   β”œβ”€β”€ home.png
β”‚   β”œβ”€β”€ blogs.png
β”‚   β”œβ”€β”€ blog-details.png
β”‚   β”œβ”€β”€ create-blog.png
β”‚   β”œβ”€β”€ edit-blog.png
β”‚   └── mobile.png
β”‚
β”œβ”€β”€ .gitignore
β”œβ”€β”€ README.md
└── LICENSE

βš™ Environment Variables

Create a .env file inside the server folder.

FLASK_APP=app.py

FLASK_ENV=development

SECRET_KEY=your-secret-key

DATABASE_URL=sqlite:///blog.db

πŸš€ Getting Started

Prerequisites

  • Python 3.10+
  • Node.js 18+
  • npm
  • Git

1. Clone the Repository

git clone https://github.com/your-username/blogify.git

cd blogify

2. Backend Setup

Create a virtual environment

cd server

python -m venv venv

Activate it

Windows

venv\Scripts\activate

Linux / macOS

source venv/bin/activate

Install dependencies

pip install -r requirements.txt

Run Flask server

python app.py

Backend runs on

http://127.0.0.1:5000

3. Frontend Setup

Open another terminal

cd client

npm install

npm run dev

Frontend runs on

http://localhost:5173

πŸ”— REST API Endpoints

Blog APIs

Method Endpoint Description
GET /api/blogs Fetch all blog posts
GET /api/blog/<id> Fetch single blog
POST /api/submit Create a new blog
PUT /api/blog/<id>/edit Update a blog
DELETE /api/blog/<id> Delete a blog

πŸ› Application Architecture

                React Frontend
                       β”‚
                       β”‚ Axios
                       β–Ό
              Flask REST API
                       β”‚
               SQLAlchemy ORM
                       β”‚
                       β–Ό
                SQLite Database

πŸš€ Future Improvements

  • User Authentication
  • User Accounts
  • User Dashboard
  • Categories
  • Tags
  • Rich Text Editor
  • Markdown Support
  • Comments
  • Likes
  • Search
  • Advanced Filters
  • Pagination
  • Related Blogs
  • Reading Time
  • Bookmarks
  • Draft Blogs
  • SEO Optimization
  • Dark Mode
  • Admin Dashboard

🀝 Contributing

Contributions are welcome!

  1. Fork the repository

  2. Create your feature branch

git checkout -b feature/amazing-feature
  1. Commit your changes
git commit -m "Added amazing feature"
  1. Push your branch
git push origin feature/amazing-feature
  1. Open a Pull Request

πŸ’» Running the Project

Backend

cd server

python app.py

Frontend

cd client

npm install

npm run dev

πŸ“œ License

This project is licensed under the MIT License.

See the LICENSE file for more information.


πŸ’‘ Author

Made with ❀️ by Rishabh Dhawad

⭐ If you found this project useful, consider giving it a star!

About

A full-stack blog application built with React and Flask, featuring a clean and intuitive user interface for creating, reading, updating, and deleting blog posts.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages