Backend Documentation

Configuration

Runtime configuration for sessions, database, third-party APIs, and transport-layer behavior.

Core Config Files

`config/database.js` handles database connection.

`config/checkpoint.js` applies performance middleware and request-level optimizations.

`config/passport.js` wires local and social auth strategies.

Environment Variables

MONGODB_URISESSION_SECRETFRONTEND_URLNODE_ENVPORTOPENAI_API_KEYPAYSTACK_SECRET_KEYMETA_APP_IDMETA_APP_SECRETMETA_APP_TOKENWHATSAPP_VERIFY_TOKENINSTAGRAM_VERIFY_TOKEN