Skip to content

mahmoudi-1798/flasker

Repository files navigation

Flasker Blog Website

alt text This project is a Flask-based blog website that has been developed based on the course by @flatplanet. The website is designed to allow users to create, read, and interact with blog posts. It utilizes the Flask web framework and employs a MySQL database to manage and store the blog content.

Features

  • Create new blog posts.
  • View existing blog posts.
  • User registration and authentication.
  • MySQL database integration.

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/mahmoudi-1798/flasker
    
  2. Create a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate   
    
  3. Install the required dependencies:

    pip install -r requirements.txt
    
  4. Set up your MySQL database and update the configuration:

    SQLALCHEMY_DATABASE_URI = 'mysql://username:password@localhost/dbname'
  5. Initialize the database:

    flask db init
    flask db migrate -m "Initial migration"
    flask db upgrade
    
  6. Run the Flask application:

    flask run
    

Admin Account with Admin Privileges:

  • Username: admin
  • Password: admin

Future Features

I have plans for future enhancements to the Flask Blog Website. Some of the upcoming features include:

  • Enhanced user profiles.
  • Advanced search and filtering options.
  • Social media integration.
  • Interact with blog posts (likes, comments, etc.)

Contributing

Contributions are welcome! If you find any issues or would like to add new features, feel free to submit a pull request.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published