-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
34 lines (27 loc) · 1.07 KB
/
.env.example
File metadata and controls
34 lines (27 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Development Environment Configuration Template
# Copy this file to .env.development and fill in the actual values
# Server Configuration
NODE_ENV=development
PORT=3000
HOST=0.0.0.0
LOG_LEVEL=info
# Security - REQUIRED
# Generate a strong API key (minimum 16 characters, recommended 32+)
# Example: openssl rand -hex 32
API_KEY=6fdb0b593edeba06ed02175246a6042966bde13330d800bc1d994530fbdbe89d
# Database Configuration (PostgreSQL)
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=promocode_user
POSTGRES_PASSWORD=promocode_password
POSTGRES_DB=promocode_db
# Either provide DATABASE_URL or individual components
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
# External APIs (OpenWeatherMap)
OPENWEATHERMAP_API_KEY=your-openweather-api-key-here
OPENWEATHERMAP_API_URL=https://api.openweathermap.org/data/2.5
# CORS Configuration (optional)
ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
# Weather Service Configuration
# Set to 'false' for production to use real OpenWeatherMap API
USE_MOCK_WEATHER=true