- Add in-memory caching for external API responses (6-hour expiration) - Implement OpenWeatherMap integration for weather data - Create static tide tables for 22 Irish coastal stations - Add tide calculation based on semi-diurnal patterns and lunar cycles - Implement water quality, beach quality, and biodiversity placeholder endpoints - Add comprehensive API documentation (EXTERNAL_API_SETUP.md) - Fix frontend WaterQualityIndicator crash - Remove Redis dependency (using in-memory cache instead) - All external data endpoints functional and tested
22 lines
550 B
Plaintext
22 lines
550 B
Plaintext
# Database
|
|
DATABASE_URL="mysql://beach_litter_user:BeachClean2024!@192.168.4.20:3306/beach_litter_mapping"
|
|
|
|
# Clerk Authentication
|
|
CLERK_SECRET_KEY="sk_test_your_secret_key_here"
|
|
CLERK_WEBHOOK_SECRET="whsec_your_webhook_secret_here"
|
|
|
|
# Server
|
|
PORT=3000
|
|
NODE_ENV=development
|
|
|
|
# File Upload
|
|
UPLOAD_DIR=./uploads
|
|
MAX_FILE_SIZE=5242880
|
|
|
|
# Redis Cache
|
|
REDIS_URL="redis://localhost:6379"
|
|
|
|
# External APIs
|
|
OPENWEATHER_API_KEY="your_openweather_api_key_here"
|
|
# Optional: STORMGLASS_API_KEY="your_stormglass_api_key_here" (10 free requests/day for tide data)
|