Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DG1001/jfs_aider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SnapPic - Temporary Photo Sharing App

SnapPic is a Flask-based web application that allows users to temporarily share photos. Each uploaded image is displayed for 5 seconds, then fades out over 10 seconds before being automatically deleted.

Features

  • 📸 Upload images from camera or gallery
  • ✏️ Add short comments (max 100 chars)
  • ⏱️ Images automatically expire after 15 seconds (5s visible + 10s fade)
  • 📱 Responsive design works on mobile and desktop
  • ⚡ Progressive Web App (PWA) support
  • 🔄 Auto-refreshing gallery updates every 2 seconds
  • 🔒 Secure file upload handling

Technology Stack

  • Backend: Python Flask
  • Frontend: Vanilla HTML/CSS/JavaScript
  • Storage: Local filesystem for images, JSON for metadata
  • PWA: Service Worker + Web Manifest

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/snappic.git
cd snappic
  1. Install dependencies:
pip install -r requirements.txt
  1. Initialize data files:
echo '[]' > data.json
mkdir -p uploads
  1. Run the application:
python app.py
  1. Open in browser:
http://localhost:5000

Project Structure

snappic/
├── app.py                 # Flask application
├── data.json              # Image metadata
├── uploads/               # Uploaded images
├── requirements.txt       # Python dependencies
├── README.md              # This file
├── templates/
│   ├── index.html         # Upload page
│   └── gallery.html       # Gallery page
└── static/
    ├── style.css          # Stylesheet
    ├── script.js          # Client-side logic
    ├── sw.js              # Service Worker
    ├── manifest.json      # PWA manifest
    └── icon-192.png       # App icon

Development Notes

This project was created with the assistance of:

  • Aider - AI pair programming tool
  • DeepSeek Chat - Large language model

Screenshots

Upload Page
The upload interface with camera/file selection and comment field

Gallery View
The gallery showing uploaded images with comments and fade effects

License

MIT License

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks