1.0 KiB
1.0 KiB
inclusion
| inclusion |
|---|
| always |
Technology Stack
Runtime & Language
- Node.js with CommonJS modules
- JavaScript (no TypeScript)
Core Dependencies
- express - Web server framework
- axios - HTTP client for API calls
- node-cron - Scheduled task execution
- dotenv - Environment variable management
- cors - Cross-origin resource sharing
External Services
- OpenRouter API for AI quote generation
- Configurable AI model (default: gpt-3.5-turbo)
Common Commands
# Install dependencies
npm install
# Start the server
npm start
# Server runs on port 3000 by default (configurable via PORT env var)
Environment Configuration
Required environment variables in .env:
OPENROUTER_API_KEY- API key for OpenRouter serviceMODEL- (optional) AI model to use, defaults to gpt-3.5-turboPORT- (optional) Server port, defaults to 3000
Data Storage
- File-based JSON storage in
quotes/quotes.json - No database required
- Quotes directory auto-created on startup