terminal
# from the repository root
cp backend/.env.example backend/.env

# frontend (create manually if no example ships)
echo NEXT_PUBLIC_API_URL=http://localhost:5000/api/v1 > frontend/.env.local

VariableDescriptionWhere it comes fromFileExample
NODE_ENVbackend/.envdevelopment
PORTbackend/.env5000
API_PREFIXbackend/.env/api/v1
VariableDescriptionWhere it comes fromFileExample
MONGO_URIbackend/.envyour_mongodb_connection_string
VariableDescriptionWhere it comes fromFileExample
JWT_SECRETbackend/.envyour_random_32_character_secret
JWT_EXPIRES_INbackend/.env7d
JWT_REFRESH_SECRETbackend/.envyour_other_random_32_char_secret
JWT_REFRESH_EXPIRES_INbackend/.env30d
VariableDescriptionWhere it comes fromFileExample
COOKIE_SECRETbackend/.envyour_random_32_character_secret
VariableDescriptionWhere it comes fromFileExample
RESEND_API_KEYbackend/.envre_your_api_key
RESEND_FROMbackend/.env"SaaS Starter Kit <noreply@yourdomain.com>"
RESEND_REPLY_TObackend/.envsupport@yourdomain.com
EMAIL_FROMbackend/.env"SaaS Starter Kit <noreply@yourdomain.com>"
EMAIL_MAX_RETRIESbackend/.env3
EMAIL_RETRY_DELAY_MSbackend/.env1000
VariableDescriptionWhere it comes fromFileExample
FRONTEND_URLbackend/.envhttp://localhost:3000
NEXT_PUBLIC_API_URLfrontend/.env.localhttp://localhost:5000/api/v1
VariableDescriptionWhere it comes fromFileExample
GOOGLE_CLIENT_IDbackend/.envyour_google_client_id
GOOGLE_CLIENT_SECRETbackend/.envyour_google_client_secret
GOOGLE_CALLBACK_URLbackend/.envhttp://localhost:5000/api/v1/auth/google/callback
VariableDescriptionWhere it comes fromFileExample
RATE_LIMIT_WINDOW_MS / RATE_LIMIT_MAX_REQUESTSbackend/.env900000 / 100
RATE_LIMIT_FORGOT_WINDOW_MS / _MAX_REQUESTSbackend/.env900000 / 3
RATE_LIMIT_OTP_WINDOW_MS / _MAX_REQUESTSbackend/.env900000 / 5
VariableDescriptionWhere it comes fromFileExample
UPLOAD_PATH / MAX_FILE_SIZEbackend/.env./uploads / 5242880
VariableDescriptionWhere it comes fromFileExample
STRIPE_SECRET_KEY / STRIPE_WEBHOOK_SECRET / STRIPE_PUBLISHABLE_KEYbackend/.envsk_test_your_key (future)
VariableDescriptionWhere it comes fromFileExample
ADMIN_EMAIL / ADMIN_PASSWORD / ADMIN_NAMEbackend/.envyou@yourdomain.com / <your strong password> / Admin