This is a simple blog web application built with Flask, a micro web framework written in Python. It uses SQLite3 as the database and Flask-SQLAlchemy for Object Relational Mapping (ORM).
- Create, read, update, and delete (CRUD) operations for blog posts.
- SQLite3 database for storing blog post data.
- Flask-SQLAlchemy for easy database management.
- Flask: A micro web framework for Python.
- SQLite3: A C library that provides a lightweight disk-based database.
- Flask-SQLAlchemy: An extension for Flask that simplifies the use of SQLAlchemy with Flask by providing useful defaults and extra helpers.
- Bootstrap Library for responsive design.
- HTML5/CSS3 for page layouts.
- flask
- flask_sqlalchemy
- datetime
-
'/'
: The home page where all blog posts are displayed. -
'/new_post'
: The page where a new blog post can be created. -
'/edit/<int:id>'
: The page where an existing blog post can be edited. -
'/delete/<int:id>'
: The route that handles the deletion of a blog post.
- Clone the repository.
- Install the required Python libraries with
pip install -r requirements.txt
. - Run the application with
python app.py
.
Visit '/'
to see all blog posts. Click on "Create Post" to create a new blog post. Click on "Edit" to edit an existing blog post. Click on "Delete" to delete a blog post.
- User authentication for secure blog post management.
- Commenting functionality for blog posts.
- Improved UI/UX design.