A simple, responsive blog platform built with Flask backend and a frontend using HTML, CSS, Bootstrap, and JavaScript.
- User registration and authentication
- Create, edit, and delete blog posts
- View all blog posts with pagination
- Responsive design with Bootstrap
- Secure password hashing and session management
- Commenting system (optional)
- Clean and easy-to-navigate UI
- Backend: Python, Flask, Flask-Login, Flask-WTF, Flask-SQLAlchemy
- Frontend: HTML5, CSS3, Bootstrap 5, Vanilla JavaScript
- Database: SQLite (default), easily switchable to PostgreSQL/MySQL
- Templating: Jinja2 (Flask’s default)
- Clone the repository
git clone https://github.com/zealizu/blog.git
cd blog
# Create virtual environment
python -m venv venv
# Activate virtual environment
# macOS/Linux
source venv/bin/activate
# Windows (PowerShell)
venv\Scripts\Activate.ps1
# Windows (CMD)
venv\Scripts\activate.bat
#install requirements
pip install -r requirements.txt- Create a .env file in the project root with: SECRET_KEY=your_secret_key_here DATABASE_URL=sqlite:///site.db
- Run the development server Flask run