bd3265e6a24f80441de269a34c0524137001f555
Pet Picture Queue
A web application to manage pet pictures from subscribers. Built with Flask, SQLite, and Jinja2 templates.
Features
- Upload pet pictures with subscriber information
- View all uploaded pictures in a grid layout
- Mark pictures as posted
- Modern, responsive UI using Tailwind CSS
- Click to view full-size images
- Download original images
Setup
Local Development
- Install dependencies:
uv pip install -e .
- Run the application:
python main.py
The application will be available at http://localhost:5000
Docker Deployment
- Build the Docker image:
docker build -t pet-picture-queue .
- Run the container:
docker run -d \
-p 5000:5000 \
-v $(pwd)/static/uploads:/app/static/uploads \
-v $(pwd)/pet_pictures.db:/app/pet_pictures.db \
--name pet-picture-queue \
pet-picture-queue
The application will be available at http://localhost:5000
Usage
- Visit the homepage to see all uploaded pet pictures
- Click "Upload New" to add a new pet picture
- Fill in the subscriber name and select a picture
- View uploaded pictures on the homepage
- Click on any picture to view it in full size
- Use the "Download Original" button to download the original file
- Mark pictures as posted using the "Mark as Posted" button
File Structure
main.py- Main Flask applicationtemplates/- Jinja2 templatesbase.html- Base template with common layoutindex.html- Homepage with picture gridupload.html- Upload form
static/uploads/- Directory for uploaded picturespet_pictures.db- SQLite database (created automatically)Dockerfile- Docker configuration.dockerignore- Docker build exclusions
Description
Languages
Python
65.2%
HTML
32.8%
Dockerfile
2%