No description
| app | ||
| scripts | ||
| .gitignore | ||
| app_direct.py | ||
| README.md | ||
| requirements.txt | ||
| streamlit_run.py | ||
User and Image Management System
A Streamlit application for user and image management with SQLite and MinIO storage.
Features
User Management
- Create, view, edit, and delete users
- Each user has:
- Name
- User ID (auto-generated)
- Preferences (font, logo URL, subtitle)
Image Management
- Upload, view, edit, and delete images
- Each image has:
- Image ID
- Resolution
- URL (stored in MinIO/S3)
- Built-in image viewer
Requirements
- Python 3.7+
- MinIO server or S3-compatible storage
- SQLite
Installation
- Clone the repository
- Install dependencies:
pip install -r requirements.txt - Set up MinIO server or use an existing S3-compatible storage solution
- Configure the environment variables (optional):
MINIO_ENDPOINT=localhost:9000 MINIO_ACCESS_KEY=minioadmin MINIO_SECRET_KEY=minioadmin MINIO_BUCKET=images MINIO_SECURE=False
Running the Application
python main.py
The application will be available at http://localhost:8501
Setting up MinIO
- Download and install MinIO from https://min.io/download
- Run MinIO server:
minio server /path/to/data - Open the MinIO browser interface (default: http://localhost:9000)
- Create a bucket named "images"
Project Structure
├── app/
│ ├── models/ # Database models
│ ├── services/ # Business logic services
│ ├── pages/ # Streamlit page components
│ ├── utils/ # Utility functions
│ ├── static/ # Static assets
│ │ └── images/ # Static images
│ └── app.py # Main Streamlit application
├── main.py # Application entry point
├── requirements.txt # Python dependencies
└── README.md # Project documentation