This project is based on a completed local Java Web ImageManager prototype and has been refactored into a separated frontend-backend architecture for final assessment and cloud deployment.
ImageManager is a cloud-ready image management system. Users can register, log in, upload images, batch import browser-selected files or folders, search and filter metadata, toggle tags, copy image content, view details, sync authorized folders, and delete their own images.
backend: Spring Boot RESTful APIfrontend: Vue 3 SPA built with Vitedatabase: MySQL schema and migration files- Frontend deployment: Cloudflare Pages
- Backend deployment: Railway
- Database: Aiven MySQL, currently using database
defaultdb - Image storage: Cloudflare R2
The backend uses Controller / Service / Repository layers. The frontend communicates with REST APIs through Axios and stores JWT tokens in localStorage.
- Backend: Java 17, Spring Boot 3.3.5, Spring Web, Spring Data JPA, Spring Security, Validation, MySQL Driver, JWT, AWS SDK S3 Client
- Frontend: Vue 3, Vite, Vue Router, Axios, native CSS
- Database: MySQL 8 compatible relational schema
- Storage: Cloudflare R2 through the S3-compatible API
- User registration
- User login
- Logout
- Single image upload
- Mobile image upload through the responsive upload page
- Desktop batch image selection
- Select all / select partial before upload
- Upload selected images to R2
- Image list
- Image detail
- Search images
- Instant filter by source / tag / time
- Sort images
- Toggle tags with a continuous tag menu
- Delete image and remove the R2 object
- Copy image binary to clipboard with link/download fallback
- Folder presets
- Browser directory authorization
- Folder sync with selected upload
- Optional delete missing cloud images
- Responsive layout
These feature points satisfy the course requirement that the final project must include at least 10 functions. Login and registration are counted as two functions.
Auth:
POST /api/auth/registerPOST /api/auth/loginGET /api/auth/me
Images:
GET /api/imagesPOST /api/images/uploadGET /api/images/{id}GET /api/images/{id}/contentDELETE /api/images/{id}POST /api/images/{id}/tags/toggleGET /api/images/{id}/downloadGET /api/images/sources
Folder presets:
GET /api/folder-presetsPOST /api/folder-presetsPUT /api/folder-presets/{id}DELETE /api/folder-presets/{id}GET /api/folder-presets/{id}/images/indexPOST /api/folder-presets/{id}/images/uploadPOST /api/folder-presets/{id}/cleanup-missing
Health:
GET /api/health
Current cloud database name: defaultdb
SQL files:
database/schema.sql
database/migration-folder-sync.sql
For a fresh database, run database/schema.sql. For the already deployed MVP database, run database/migration-folder-sync.sql to add Folder Sync support without dropping existing data.
The project also uses spring.jpa.hibernate.ddl-auto=update, but SQL files are kept for submission, review, and reproducible deployment.
cd backend
./mvnw spring-boot:runOn Windows:
cd backend
mvnw.cmd spring-boot:runFor local fallback storage:
STORAGE_TYPE=local
For cloud deployment:
STORAGE_TYPE=r2
cd frontend
npm install
npm run devCreate frontend/.env from frontend/.env.example:
VITE_API_BASE_URL=http://localhost:8080
Cloudflare Pages must use the backend origin without /api:
VITE_API_BASE_URL=https://imagemanager-final-production.up.railway.app
Browsers cannot silently read fixed local paths such as D:/Screenshots. Folder Sync uses user authorization in the browser:
- Preferred:
showDirectoryPicker - Fallback:
input type="file" webkitdirectory multiple - Directory handles are stored in IndexedDB when supported
- The backend never reads the user's local disk directly
- Mobile browsers can use regular Upload when directory authorization is unavailable
Add cloud-ready ImageManager frontend and backend
or:
Import completed ImageManager prototype and add cloud-ready SPA refactor
- Separated frontend-backend architecture
- Standard RESTful API design
- JWT authentication with BCrypt password hashing
- Per-user image ownership checks
- JPA Repository-based relational database persistence
- Cloudflare R2 object storage integration
- Protected image content streaming for clipboard copy
- Folder presets and browser-authorized folder sync
- Batch uploads in groups of five
- Responsive Vue SPA for desktop and mobile use
- Desktop sync client for automatic local folder scanning
- OCR
- AI classification
- Private R2 signed URLs
- Shared galleries
- Image editing