This is a simple blog site built with Flask and SQLite. Users can register, log in, create blog posts, and comment on posts.
To run the blog site locally, follow these instructions:
- Python (3.7 or higher)
- Pip (Python package installer)
-
Clone the repository:
git clone https://github.com/oswaldshoo/blog.git
-
Navigate to the project directory:
cd blog
-
Install the required dependencies:
pip install -r requirements.txt
-
Initialize the SQLite database:
flask db init flask db migrate -m "Initial migration" flask db upgrade
-
Run the Flask development server:
flask run
-
Open your web browser and go to http://localhost:5000/ to access the blog site.
- User Registration and Authentication
- View a List of Blog Posts
- Read Individual Blog Posts
- Add Comments to Blog Posts
- Create New Blog Posts
- Log In and Log Out
app.py
: Main Flask application file.auth.py
: User authentication routes and functions.templates/
: HTML templates for rendering pages.static/
: Static assets (CSS, images).
Contributions are welcome! Please follow the Contribution Guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.