- Added a comprehensive manual testing guide for the countdown functionality in `test_countdown_manual.md`. - Developed a detailed Selenium test suite in `test_countdown_selenium.py` to verify countdown behavior, including server accessibility, login, countdown progression, and UI elements. - Created a minimal Selenium test version in `test_countdown_selenium_minimal.py` for quick checks without complex setup. - Introduced a verification script in `test_countdown_verification.py` to analyze code correctness, including server checks, build file existence, and countdown logic.
4.7 KiB
📁 Tilbudgivern - Mappestruktur
🗂️ Hoveddele
tilbudgivern/
├── backend/ # Backend API (Node.js/Express)
├── frontend/ # Frontend (React)
├── react-app/ # React components
├── database/ # Database scripts og migrations
├── migrations/ # Database migrations
├── docs/ # Dokumentation
├── archive/ # Arkiverede filer
├── src/ # Source kode
├── tests/ # Test filer
├── logs/ # Log filer
├── installation_data/ # Installation manual data
└── manuals/ # PDF manualer
📚 Dokumentation (docs/)
Features
- Custom installation tasks
- Bygma import
- Installation manuals
- Smart packages
- Material editing
- Markup sliders
API
- Bygma automation
- Customer search
- Ordrestyring integration
- Case analytics
- API endpoints oversigt
Deployment
- Deployment pipeline
- DNS migration
- PM2 guide
Guides
- Komplet opgave database
- Ordrestyring system
- Tilbudsberegning
- Manual scraper
- Lego pakker
- Tømmer quick reference
Archived
- Gamle bug fixes
- Implementering noter
- Debug logs
- Deprecation notices
🗃️ Arkiv (archive/)
sql/
SQL scripts, queries, og database setup filer.
scrapers/
Python web scrapers til Bygma, prisbog import, etc.
scripts/
Shell scripts til deployment, migration, backup, etc.
logs/
Gamle log filer og import logs.
test-files/
Test scripts og test data.
analysis/
Analyse scripts, debug tools, og data exploration.
docs/
Gamle dokumenter og implementation notes.
temp-files/
Temporary filer, PDFs, JSON dumps, backups.
old-backups/
Database backups og SQL dumps.
🚀 Vigtige Filer i Root
- README.md - Projekt oversigt
- FEATURE_ROADMAP.md - Feature plan
- package.json - Node.js dependencies
- docker-compose.yml - Docker setup
- .env - Environment variabler (ikke i git)
- ecosystem.config.json - PM2 konfiguration
- unified-server.js - Unified backend server
🔧 Core Directories
backend/
Backend API service med routes, services, og controllers.
backend/
├── src/
│ ├── routes/ # API routes
│ ├── services/ # Business logic
│ ├── controllers/ # Request handlers
│ └── utils/ # Utility functions
└── server.js # Server entry point
frontend/
React frontend applikation.
frontend/
├── src/
│ ├── components/ # React components
│ ├── pages/ # Page components
│ ├── hooks/ # Custom hooks
│ └── utils/ # Utilities
└── public/ # Static assets
database/
Database konfiguration og seeds.
migrations/
Database migration scripts.
📊 Data Flow
1. Frontend (React) → API Requests
2. Backend (Express) → Process & Validate
3. Database (MariaDB) → Store & Retrieve
4. Ordrestyring API → External Integration
5. Bygma Scraper → Import Materials
🛠️ Development
Start Backend
cd backend
npm install
npm start
Start Frontend
cd frontend
npm install
npm start
Database Migration
mysql -u user -p database < migrations/latest.sql
📦 Archive Organization
Alle gamle, midlertidige, og ikke-aktive filer er organiseret i archive/:
- Før: 200+ filer i root
- Efter: ~30 filer i root (kun aktive)
- Arkiveret: 170+ filer organiseret i kategorier
🔍 Find Filer
SQL Scripts
ls archive/sql/
Python Scrapers
ls archive/scrapers/
Test Scripts
ls archive/test-files/
Gamle Dokumenter
ls archive/docs/
📝 Dokumentation Navigation
For Features
ls docs/features/
For API
ls docs/api/
For Deployment
ls docs/deployment/
For Guides
ls docs/guides/
🎯 Quick Commands
# Find alle SQL filer
find . -name "*.sql" -type f
# Find alle Python scrapers
find archive/scrapers -name "*.py"
# Find alle dokumenter om feature X
grep -r "feature_name" docs/
# Se alle logs
ls -lh archive/logs/
# Liste alle test filer
ls archive/test-files/
✨ Oprydning Completed
✅ SQL filer arkiveret
✅ Python scrapers organiseret
✅ Test filer samlet
✅ Logs arkiveret
✅ Dokumentation struktureret
✅ Gamle scripts arkiveret
✅ Temp filer ryddet op
✅ Backups organiseret
Status: 📁 Veltorganiseret og klar til udvikling!
Sidst opdateret: 2025-10-30
Organiseret af: Cleanup automation