Skip to content

esparzar/flaskapp

Repository files navigation

Flask Blog Application

A full-featured blog application built with Flask, featuring user authentication, blog post management, and a clean Bootstrap interface.

Features

  • 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

Tech Stack

  • Framework: Flask
  • Database: SQLAlchemy with SQLite
  • Authentication: Flask-Login
  • Forms: Flask-WTF
  • Frontend: Bootstrap 5
  • Database Migrations: Flask-Migrate

Installation

  1. Clone the repository:
git clone https://github.com/esparzar/flaskapp.git
cd flaskapp
  1. Create and activate virtual environment:
python -m venv flaskevn
source flaskevn/bin/activate  # On Windows: flaskevn\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Initialize the database:
flask db upgrade
  1. Create a test user and posts (optional):
python create_test_user.py
python create_test_posts.py
  1. Run the application:
flask run

The application will be available at http://127.0.0.1:5000/

Project Structure

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

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Emmanuel Amponsah - [email protected]

Project Link: https://github.com/esparzar/flaskapp

Clone the project:

gh repo clone esparzar/flaskapp

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published