This will install 20+ production dependencies including Express, Mongoose, Anthropic SDK, and more.
3
Configure Environment
Create your environment configuration file:
cp .env.example .env
Edit the .env file with your settings:
# Server ConfigurationPORT=3000NODE_ENV=development# DatabaseMONGODB_URI=mongodb://localhost:27017/claude-prompt-db# AuthenticationJWT_SECRET=your_jwt_secret_super_secure_256_bits_minimumJWT_EXPIRES_IN=7d# Anthropic Claude AIANTHROPIC_API_KEY=sk-ant-api03-your-api-key-hereCLAUDE_MODEL=claude-3-sonnet-20240229
Replace your_jwt_secret_super_secure_256_bits_minimum with a strong random string for production use.
4
Start MongoDB
Ensure MongoDB is running on your system:
# macOS (with Homebrew)brew services start mongodb-community# Linux (systemd)sudo systemctl start mongod# Or use Dockerdocker run -d -p 27017:27017 --name mongodb mongo:5.0
5
Seed the Database (Optional)
Populate the database with initial data:
npm run seed
This creates default prompt templates and test data.
6
Start the Server
Launch the development server:
npm run dev
You should see output similar to:
✓ Variables de entorno cargadas:ANTHROPIC_API_KEY configurada: true✓ Conectado exitosamente a la base de datos✓ Conexión con Claude API validada exitosamente✓ Servidor corriendo en puerto 3000 (development)Módulo de Diagnóstico Inteligente activado✓ Notificaciones en tiempo real habilitadas✓ Tareas programadas iniciadas