From cb32bd23ca40a6a90aafe6022a20dd7e84f974b0 Mon Sep 17 00:00:00 2001 From: Linus Waldowsky Date: Mon, 9 Feb 2026 19:57:55 +0100 Subject: [PATCH] docs: add .env.example files for client and server --- apps/client/.env.example | 8 ++++++++ apps/server/.env.example | 28 ++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 apps/client/.env.example create mode 100644 apps/server/.env.example diff --git a/apps/client/.env.example b/apps/client/.env.example new file mode 100644 index 0000000..b512a56 --- /dev/null +++ b/apps/client/.env.example @@ -0,0 +1,8 @@ +# Base URL of the CalChat API server +# Must include the /api path suffix +# Use your local network IP for mobile device testing, or localhost for emulator/web +# Examples: +# http://192.168.178.22:3001/api (local network, for physical device) +# http://localhost:3001/api (emulator or web) +# https://calchat.example.com/api (production) +EXPO_PUBLIC_API_URL=http://localhost:3001/api diff --git a/apps/server/.env.example b/apps/server/.env.example new file mode 100644 index 0000000..6240d02 --- /dev/null +++ b/apps/server/.env.example @@ -0,0 +1,28 @@ +# OpenAI API key for GPT-based chat assistant +# Required for AI chat functionality +OPENAI_API_KEY=sk-proj-your-key-here + +# Port the server listens on +# Default: 3000 +PORT=3000 + +# MongoDB connection URI +# Default: mongodb://localhost:27017/calchat +# The Docker Compose setup uses root:mongoose credentials with authSource=admin +MONGODB_URI=mongodb://root:mongoose@localhost:27017/calchat?authSource=admin + +# Use static test responses instead of real GPT calls +# Values: true | false +# Default: false +USE_TEST_RESPONSES=false + +# Log level for pino logger +# Values: debug | info | warn | error | fatal +# Default: debug (development), info (production) +LOG_LEVEL=debug + +# Node environment +# Values: development | production +# development = pretty-printed logs, production = JSON logs +# Default: development +NODE_ENV=development