{"name":"env-example","title":".env.example template","description":"A .env.example template with grouped variables, safe defaults and empty secrets, plus how to keep it in sync with your code and share the real values.","category":"project","updated":"2026-11-08","url":"https://sniptide.com/templates/env-example","files":[{"name":".env.example","language":"dotenv","content":"# Copy this file to .env and fill in the values: cp .env.example .env\n# Commit .env.example. Never commit .env.\n\n# --- App ---\n# development, test or production\nNODE_ENV=development\n# The public URL of the app, without a trailing slash\nAPP_URL=http://localhost:3000\nPORT=3000\n\n# --- Database ---\n# Matches the Postgres service in docker-compose.yml\nDATABASE_URL=postgres://app:app@localhost:5432/app\n\n# --- Auth ---\n# A random string of at least 32 characters: openssl rand -base64 32\nAUTH_SECRET=\n# OAuth app from https://github.com/settings/developers\nGITHUB_CLIENT_ID=\nGITHUB_CLIENT_SECRET=\n\n# --- Email ---\n# Leave empty in development to print emails to the console\nSMTP_URL=\nEMAIL_FROM=\"Acme <hello@example.com>\"\n\n# --- Optional ---\n# Error reporting. Leave empty to turn it off.\nSENTRY_DSN=\nLOG_LEVEL=info\n"}]}