This is a Flask-based blog application that allows users to create, edit, and delete blog posts, leave comments, and view user profiles.
- Python 3.x
- Flask
- Flask-CKEditor
- Flask-Bootstrap
- Flask-Login
- Flask-Gravatar
- Clone the repository:
git clone https://github.com/MichaelOgunjimi/mike-blog.git
- Navigate to the project directory:
cd flask-blog
arduino
- (Optional) Create a virtual environment:
python3 -m venv venv source venv/bin/activate
- Install the required dependencies:
pip install -r requirements.txt
- Set up the database:
flask db init flask db migrate flask db upgrade
- Set the Flask app environment variable:
export FLASK_APP=app.py
- Start the Flask development server:
flask run
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.
- Register a new account or log in with an existing account.
- Navigate to the homepage to view all blog posts.
- Click on a blog post to view its details and leave comments.
- As an admin, you can create, edit, and delete blog posts.
- Visit your user profile to view and edit your profile information.
- None at the moment.
Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.
For any questions or inquiries, please contact me at [email protected].