2025-11-12 23:53:05 +07:00

49 lines
1.0 KiB
Markdown

---
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
```bash
# 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 service
- `MODEL` - (optional) AI model to use, defaults to gpt-3.5-turbo
- `PORT` - (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