This Flask Blog repository houses a blog application created using Flask. It's the product of a journey through a comprehensive Flask course on YouTube. The blog offers functionalities typical of a Flask-based web application, allowing users to create, read, update, and delete blog posts.
- User Authentication: Users can register, log in, and log out securely.
- CRUD Operations: Create, Read, Update, and Delete blog posts.
- User-specific Dashboards: Customized dashboards for users, displaying their posts and account information.
To run this application locally, follow these steps:
- Clone the repository:
git clone https://github.com/hossamrizk/My-Blog.git
- Navigate to the project directory:
cd My-Blog
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
- Install the required dependencies:
pip install -r requirements.txt
- Set up the database:
- Initialize the database:
python create_db.py
- Initialize the database:
- Run the application:
python app.py
- Access the application in your browser at
http://localhost:5000
- Register a new account or log in if you already have one.
- Create, edit, or delete blog posts from your dashboard.
- Explore the blog by browsing through existing posts.
To delve deeper into Flask and web development:
If you'd like to contribute to this project, feel free to open an issue or submit a pull request. All contributions are welcome!