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.
- Create new blog posts.
- View existing blog posts.
- User registration and authentication.
- MySQL database integration.
-
Clone the repository to your local machine:
git clone https://github.com/mahmoudi-1798/flasker
-
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your MySQL database and update the configuration:
SQLALCHEMY_DATABASE_URI = 'mysql://username:password@localhost/dbname'
-
Initialize the database:
flask db init flask db migrate -m "Initial migration" flask db upgrade
-
Run the Flask application:
flask run
- Username: admin
- Password: admin
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.)
Contributions are welcome! If you find any issues or would like to add new features, feel free to submit a pull request.