From 9e6734d1a59b9dd22acbbe27989396e25e97d4fb Mon Sep 17 00:00:00 2001 From: nico Date: Tue, 10 Mar 2026 13:55:05 +0800 Subject: [PATCH] Add .env.example template with environment variables documentation Co-authored-by: Qwen-Coder --- .env.example | 19 +++++++++++++++++++ .gitignore | 1 + 2 files changed, 20 insertions(+) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..0c0e5bd --- /dev/null +++ b/.env.example @@ -0,0 +1,19 @@ +# Database +DATABASE_URL="postgresql://user:password@localhost:5432/dashboard_desa?schema=public" + +# Authentication +BETTER_AUTH_SECRET="your-secret-key-here-min-32-characters" +ADMIN_EMAIL="admin@example.com" +ADMIN_PASSWORD="admin123" + +# GitHub OAuth (Optional) +GITHUB_CLIENT_ID="" +GITHUB_CLIENT_SECRET="" + +# Application +PORT=3000 +NODE_ENV=development +LOG_LEVEL=info + +# Public URL +VITE_PUBLIC_URL="http://localhost:3000" diff --git a/.gitignore b/.gitignore index cd778fb..3e6f1b5 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ _.log report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json # dotenv environment variable files +# Only .env.example is allowed to be committed .env .env.development.local .env.test.local