Giter Site home page Giter Site logo

mike-blog's Introduction

Flask Blog Application

This is a Flask-based blog application that allows users to create, edit, and delete blog posts, leave comments, and view user profiles.

Prerequisites

  • Python 3.x
  • Flask
  • Flask-CKEditor
  • Flask-Bootstrap
  • Flask-Login
  • Flask-Gravatar

Installation

  1. Clone the repository:

git clone https://github.com/MichaelOgunjimi/mike-blog.git

  1. Navigate to the project directory:

cd flask-blog

arduino

  1. (Optional) Create a virtual environment:

python3 -m venv venv source venv/bin/activate

  1. Install the required dependencies:

pip install -r requirements.txt

  1. Set up the database:

flask db init flask db migrate flask db upgrade

  1. Set the Flask app environment variable:

export FLASK_APP=app.py

  1. Start the Flask development server:

flask run

Configuration

The following configuration options can be modified in the app.py file:

  • SECRET_KEY: The secret key used for session encryption.
  • SQLALCHEMY_DATABASE_URI: The URI for the SQLite database.
  • SQLALCHEMY_TRACK_MODIFICATIONS: Whether to track modifications to database objects.

Usage

  1. Register a new account or log in with an existing account.
  2. Navigate to the homepage to view all blog posts.
  3. Click on a blog post to view its details and leave comments.
  4. As an admin, you can create, edit, and delete blog posts.
  5. Visit your user profile to view and edit your profile information.

Known Issues

  • None at the moment.

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.

Contact

For any questions or inquiries, please contact me at [email protected].

mike-blog's People

Contributors

michaelogunjimi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.