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