# Golden Uniforms

A Flask-based e-commerce store for uniforms and sportswear — track suits, sweaters, fleece jackets, and T-shirts.

## Stack
- **Backend**: Python / Flask + Flask-SQLAlchemy
- **Database**: SQLite (default) or PostgreSQL via `DATABASE_URL` env var
- **Auth**: Replit OAuth (`flask-dance`, `flask-login`)
- **Server**: Gunicorn on port 5000

## Running the app
The workflow `Start application` runs:
```
gunicorn --bind 0.0.0.0:5000 --reuse-port --reload app:app
```

## Default credentials
- Admin panel: `/admin/login` → username `admin` / password `admin123`

## Key files
- `app.py` — app factory, DB init, seed categories
- `models.py` — Product, Category, Subcategory, CartItem, Order, Admin, User
- `routes.py` — all routes (storefront + admin)
- `forms.py` — WTForms definitions
- `replit_auth.py` — Replit OAuth blueprint
- `templates/` — Jinja2 templates
- `static/uploads/` — product images uploaded via admin

## Secrets
- `SESSION_SECRET` — Flask session secret (already set)
- `DATABASE_URL` — optional PostgreSQL connection string
