Skillara AI uses environment variables to configure AI API keys, database connections, Firebase credentials, and CORS origins. The backend reads from aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/CristianParadaLopez/cv-builder/llms.txt
Use this file to discover all available pages before exploring further.
backend/.env file loaded by dotenv at startup, and the frontend reads VITE_-prefixed variables from frontend/.env.local at Vite build time. Neither file should ever be committed to version control.
Backend environment variables
Create a file atbackend/.env with the following variables.
| Variable | Required | Description |
|---|---|---|
DATABASE_URL | Optional | PostgreSQL connection string. Required only if you want server-side CV storage. Example: postgresql://user:password@host:5432/skillara |
PORT | No | Port the Express server listens on. Defaults to 3001 if not set. |
FRONTEND_URL | Yes (prod) | Allowed CORS origin for your deployed frontend. Added to the list of permitted origins alongside localhost:5173 and localhost:3000. |
OPENROUTER_API_KEY_1 | Yes (at least one) | First OpenRouter API key. The backend cycles through all non-empty keys when generating CVs. |
OPENROUTER_API_KEY_2 | No | Second OpenRouter API key. |
OPENROUTER_API_KEY_3 | No | Third OpenRouter API key. |
OPENROUTER_API_KEY_4 | No | Fourth OpenRouter API key. |
OPENROUTER_API_KEY_5 | No | Fifth OpenRouter API key. |
DEV1_NAME | No | Display name associated with OPENROUTER_API_KEY_1. Appears in server logs to identify which key was used. |
DEV2_NAME | No | Display name for OPENROUTER_API_KEY_2. |
DEV3_NAME | No | Display name for OPENROUTER_API_KEY_3. |
DEV4_NAME | No | Display name for OPENROUTER_API_KEY_4. |
DEV5_NAME | No | Display name for OPENROUTER_API_KEY_5. |
AI_MODELS | No | Comma-separated list of OpenRouter model IDs to use for CV generation. Defaults to meta-llama/llama-3.1-8b-instruct:free,deepseek/deepseek-r1-0528:free,google/gemini-2.0-flash-exp:free. |
Example backend/.env
Frontend environment variables
Create a file atfrontend/.env.local with the following variables. All frontend variables must be prefixed with VITE_ to be exposed to the Vite build.
| Variable | Required | Description |
|---|---|---|
VITE_API_URL | Yes | Base URL of the Express backend. Use http://localhost:3001 for local development. |
VITE_FIREBASE_API_KEY | Yes | Firebase project API key. Found in the Firebase console under Project Settings → General → Your apps. |
VITE_FIREBASE_AUTH_DOMAIN | Yes | Firebase Authentication domain. Format: your-project.firebaseapp.com. |
VITE_FIREBASE_PROJECT_ID | Yes | Firebase project ID. |
VITE_FIREBASE_STORAGE_BUCKET | Yes | Firebase Storage bucket. Format: your-project.appspot.com. |
VITE_FIREBASE_MESSAGING_SENDER_ID | Yes | Firebase Cloud Messaging sender ID. |
VITE_FIREBASE_APP_ID | Yes | Firebase app ID. |