A Next.js web application for collecting and managing campus photos from multiple universities with AI-powered metadata analysis.
- Multi-University Support: Xidian University (西安电子科技大学), Xi'an Shiyou University (西安石油大学), Xi'an University of Technology (西安理工大学), and University of Bristol (布里斯托大学)
- Rich Metadata Collection: Capture photo time, season, weather, location type, and photography style
- AI-Powered Analysis: GLM-4.6V-Flash vision model integration for automatic metadata suggestion
- EXIF Data Extraction: Automatically extracts GPS coordinates and focal length from photos
- Drag & Drop Upload: User-friendly file upload with preview
- SQLite Database: Efficient local storage with full metadata tracking
- Node.js 18+ and npm
- GLM API Key (optional, for AI features) - Get one at https://open.bigmodel.cn/usercenter/apikeys
- Clone or navigate to the project directory:
cd campus-photo-collector- Install dependencies:
npm install- Configure environment variables (optional):
# Copy the example file
cp .env.example .env
# Edit .env and add your GLM API Key
# GLM_API_KEY=your_api_key_here- Start the development server:
npm run dev- Open http://localhost:3000 in your browser
Using docker-compose:
# Set your API key in environment variable or .env file
export GLM_API_KEY="your_api_key_here"
# Start services
docker-compose up -dOpen http://localhost:3000 in your browser
Research and educational purposes.