Metadata-Version: 2.1
Name: blog-app
Version: 0.1.0
Summary: A simple blog application with Flask backend
Home-page: https://gitlab.com/y.karzal/2024_assignment2_blogpss
Author: Team IT
Author-email: y.karzal@campus.unimib.it
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Framework :: Flask
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: flask>=3.1.0
Requires-Dist: flask-sqlalchemy>=5.0.0
Requires-Dist: flask-cors>=3.1.1
Requires-Dist: python-dotenv>=1.0.1

# Blog Application

A simple blog application built with Flask and HTML/JavaScript.

## Features

- View all blog posts
- Add new posts
- Automatic timestamps for each post

## Setup

1. Clone the repository
```bash
git https://gitlab.com/y.karzal/2024_assignment2_blogpss
cd 2024_assignment2_blogpss
```

2. Set up the backend
```bash
cd backend
python -m venv venv
source venv/bin/activate  # On Windows use: venv\Scripts\activate
pip install -r requirements.txt
```

3. Run the application
```bash
python app.py
```

4. Open the frontend
- Open `frontend/index.html` in your browser
- The API will be available at `http://localhost:5000`

## Project Structure

```
blog-app/
├── backend/
│   ├── app.py
│   ├── database.py
│   ├── requirements.txt
│   └── tests/
└── frontend/
    ├── index.html
    ├── css/
    └── js/
```

## Testing

Run backend tests:
```bash
cd backend
pytest tests/
```
