- CLAUDE.md: Claude Code instructions - .github/copilot-instructions.md: GitHub Copilot custom instructions - .cursorrules: Cursor IDE project rules - COPILOT_MEMORY.md: Active project context with documentation links - AGENTS.md: General repository guidelines and coding standards - GEMINI.md: Gemini AI detailed project overview All files include: project overview, tech stack, architecture patterns, Smart Packages system, roof types, Danish terminology, and common commands. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
3.7 KiB
3.7 KiB
Tilbudgivern - Project Memory
Use this file to keep AI assistants (Copilot, Claude, Cursor) aligned on project context. Reference this file explicitly in chat sessions.
Project Summary
Tilbudgivern is an AI-powered quote calculator for Danish carpenters, focused on roofing work. It uses OpenAI GPT-4 to generate professional quotes with auto-calculated materials and labor.
Active Focus
- Smart Packages testing and refinement
- UI/UX improvements for quote creation flow
- Ordrestyring API GraphQL migration
Tech Stack Quick Reference
| Component | Technology | Location |
|---|---|---|
| Frontend | React 18 + Material-UI | frontend/ |
| Backend | Node.js/Express | backend/unified-server.js |
| Database | MariaDB | localhost:3306, db: tilbudgivern |
| AI | OpenAI GPT-4 | backend/src/services/openaiService.js |
| Process | PM2 | process: tilbudgivern-unified |
| Tests | Playwright, Jest | tests/, backend/__tests__/ |
Key Features
Smart Packages (15 packages)
Pre-configured roofing packages with auto-calculation:
- Tagdækning (B7, undertag, rygning)
- Tagrende & Nedløb (Lindab system)
- Tagvinduer (Velux montering)
- Brædder (vindskeder, sternbrædder)
- Specialarbejde (nedrivning, skortrende)
Roof Types (7 types)
- Sadeltag (pitched) - default
- Valmtag (hip)
- Københavnertag
- Fladtag (flat)
- Pulttag (shed)
- Tag med Kviste (dormers)
- Mansardtag
Key Context Links
Architecture & Setup
- CLAUDE.md - Claude Code instructions
- docs/README.md - Documentation index
- docs/deployment/PM2_GUIDE.md - PM2 management
Features
- docs/features/SMART_PACKAGES_COMPLETE_CATALOG.md - All 15 packages
- docs/ROOF_TYPES_IMPLEMENTATION.md - 7 roof types with SVG
- docs/CARPENTER_UX_IMPROVEMENTS.md - Recent UX work
Integrations
- docs/api/ORDRESTYRING_API_INVENTORY.md - GraphQL API status
- docs/STARK_IMPORT_IMPLEMENTATION.md - Stark material import
- docs/features/BYGMA_IMPORT_FEATURE.md - Bygma price book
Testing
- docs/UI_TESTING_SETUP.md - Playwright & Selenium
- docs/CARPENTER_AGENT_GUIDE.md - Test data generation
System
- docs/LOGGING_SYSTEM.md - Structured logging
- docs/DATABASE_BACKUP_SETUP.md - Backup configuration
Danish Terminology
| Danish | English |
|---|---|
| Tilbud | Quote/Offer |
| Tømrer | Carpenter |
| Tag | Roof |
| Materiale | Material |
| Pakke | Package |
| Pris | Price |
| Tagareal | Roof area |
| Rygning | Ridge |
| Tagrende | Rain gutter |
| Nedløb | Downspout |
| Spær | Rafters |
Common Commands
npm run dev # Dev with hot reload
npm run build # Build frontend
pm2 restart tilbudgivern-unified # Restart server
pm2 logs tilbudgivern-unified # View logs
npm run test:pw # Playwright tests
cd backend && npm test # Jest tests
Environment
Required in backend/.env:
OPENAI_API_KEY,DB_HOST,DB_USER,DB_PASSWORD,DB_NAME
Optional:
ORDRESTYRING_API_TOKEN,OPENAI_ADMIN_KEY
How to Use with AI Assistants
VS Code Copilot:
@workspace use COPILOT_MEMORY.md for context. Help me with [task].
Claude Code:
Reference CLAUDE.md and COPILOT_MEMORY.md for project context.
Cursor:
See .cursorrules and COPILOT_MEMORY.md for project context.
Last updated: January 2026