The application has been deployed on an 8GB Mac Mini. Access the live app here: https://mac-mini.boga-vector.ts.net/
A sleek, side-by-side art gallery application built with Streamlit. This app allows you to display, manage, and explore stunning art pieces in a modern and interactive layout.
- Side-by-Side Display: Art pieces are displayed in a responsive grid layout with evenly spaced columns.
- Admin Controls: Admins can log in to:
- Add new art pieces with titles and descriptions.
- Edit the title and description of existing art pieces.
- Delete art pieces from the gallery.
- Customizable Styling: Includes hover effects, shadows, and clean typography for a professional gallery look.
- Secure Admin Access: Protected by an admin password, ensuring only authorized users can manage the gallery.
- Python 3.8 or later
- Streamlit
- SQLite (default database, no additional setup required)
- Clone this repository:
git clone https://github.com/25mb-git/art-gallery.git
- Install dependencies:
pip install -r requirements.txt
- Run the application:
streamlit run gallery.py
-
test_save_to_db: Tests adding an art piece to the database. Verifies that the image, title, and description are saved correctly.
-
test_fetch_art_pieces: Inserts an art piece and fetches it using fetch_art_pieces(). Verifies the fetched data matches the inserted data.
-
test_update_art_piece: Inserts an art piece and updates its title and description. Verifies that the update operation was successful.
-
test_delete_art_piece: Inserts an art piece and deletes it. Verifies that the art piece is no longer in the database.
-
Run test code:: Make sure pytest is installed:
pip install pytest
-
Run test code::
pytest test/test_app.py