A full-featured blog application built with Flask, featuring user authentication, blog post management, and a clean Bootstrap interface.
- User Authentication (Register, Login, Logout)
- Blog Post Management (Create, Read, Update)
- Responsive Bootstrap Design
- User-specific Content Management
- Pagination for Blog Posts
- Flash Messages for User Feedback
- SQLAlchemy Database Integration
- Framework: Flask
- Database: SQLAlchemy with SQLite
- Authentication: Flask-Login
- Forms: Flask-WTF
- Frontend: Bootstrap 5
- Database Migrations: Flask-Migrate
- Clone the repository:
git clone https://github.com/esparzar/flaskapp.git
cd flaskapp- Create and activate virtual environment:
python -m venv flaskevn
source flaskevn/bin/activate # On Windows: flaskevn\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Initialize the database:
flask db upgrade- Create a test user and posts (optional):
python create_test_user.py
python create_test_posts.py- Run the application:
flask runThe application will be available at http://127.0.0.1:5000/
flaskapp/
├── app/
│ ├── models/
│ │ ├── user.py
│ │ └── blog.py
│ ├── routes/
│ │ ├── auth.py
│ │ ├── blog.py
│ │ └── main.py
│ ├── templates/
│ │ ├── auth/
│ │ ├── blog/
│ │ └── main/
│ └── __init__.py
├── migrations/
├── config.py
├── requirements.txt
└── run.py
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Emmanuel Amponsah - [email protected]
Project Link: https://github.com/esparzar/flaskapp
Clone the project:
gh repo clone esparzar/flaskapp