A simple, responsive photo gallery that works locally and on GitHub Pages.
- Clone this repository:
git clone https://github.com/mime29/mime29.github.com.git
cd mime29.github.com- Start the local server:
node server.js- Open your browser to
http://localhost:8080
Note: Node.js is required. If you don't have it, download it here.
- Drag & drop images to upload
- Click and drag images to reorder them
- Click image titles to edit them
- Remove images with the remove button
- All changes are saved automatically to
gallery-data.json
- Fork this repository or create a new one named
[your-username].github.io - Clone your repository:
git clone https://github.com/[your-username]/[your-username].github.io.git
cd [your-username].github.io- Run the local server (
node server.js) - Open
http://localhost:8080 - Upload and arrange your images
- Edit the gallery title and image captions
git add .
git commit -m "Update gallery"
git push origin mainYour gallery will be live at: https://[your-username].github.io
Note: It may take a few minutes for GitHub Pages to update.
/
├── index.html # Main gallery page
├── app.js # Gallery logic
├── server.js # Local development server
├── gallery-data.json # Gallery data (title, image order)
└── images/ # Your photos
- Images are automatically compressed to optimize loading
- The gallery title can be edited by clicking on it (when running locally)
- On GitHub Pages, the gallery is read-only for visitors
- Keep your
gallery-data.jsonfile committed to preserve image order and titles
- Local development: Node.js
- GitHub Pages: Just a GitHub account
MIT License - feel free to use this for your own projects!