feat: implement report submission with photo upload and map display
- Fix Prisma client generation and database schema sync issues - Implement user auto-creation from Clerk authentication - Add raw SQL queries to handle MySQL POINT spatial fields - Make password_hash optional for Clerk-only authentication - Update MapPage to fetch real reports from API - Add photo display in map popups with full-size modal view - Configure CORS and Helmet for cross-origin image loading - Add cleanup tracking task to implementation plan Fixes report submission 500 errors and enables end-to-end workflow from submission to map display.
This commit is contained in:
@@ -11,7 +11,12 @@
|
||||
"prisma:migrate": "prisma migrate dev",
|
||||
"prisma:studio": "prisma studio"
|
||||
},
|
||||
"keywords": ["beach", "litter", "environment", "api"],
|
||||
"keywords": [
|
||||
"beach",
|
||||
"litter",
|
||||
"environment",
|
||||
"api"
|
||||
],
|
||||
"author": "",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
@@ -19,9 +24,9 @@
|
||||
"@prisma/client": "^5.22.0",
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^16.4.5",
|
||||
"exifr": "^7.1.3",
|
||||
"express": "^4.21.1",
|
||||
"express-validator": "^7.2.0",
|
||||
"exifr": "^7.1.3",
|
||||
"helmet": "^8.0.0",
|
||||
"multer": "^1.4.5-lts.1",
|
||||
"zod": "^3.23.8"
|
||||
|
||||
Reference in New Issue
Block a user