Commit Graph
5 Commits
Author SHA1 Message Date
alex 8ad6c494fb Add mock server and database for Bygma pricing test
- Implemented a mock Express server in `mock-bygma-test.js` to simulate Bygma's web price search API with sample data.
- Created a new SQL file `standard_material_prices.sql` containing standard market prices for various construction materials.
- Added initial files for frontend server and pricing test components.
2025-09-15 00:13:47 +02:00
alex fa635cc84a fix: rebuild React frontend with all latest changes
- Created missing package.json, index.js, index.css, and index.html files
- Installed React dependencies and built production bundle
- Fixed white screen issue in tømrer and materiale priser tabs
- New build files (main.3c5db8af.js) now include OpenAI update functionality
- All UI components should now work correctly with updated backend APIs
2025-09-14 22:00:00 +02:00
alex c13eb3ea56 Clean up: Removed old backend/frontend services, now using unified-server.js
- Deleted tilbudgivern-backend.service and tilbudgivern-frontend.service files
- Removed old backend/src/index.js and init.js (replaced by unified-server.js)
- Cleaned up frontend directory, keeping only build/ for static serving
- Updated PM2 configuration to only run unified service + deathwatch-server
- All functionality moved to unified-server.js with database integration
2025-09-14 21:17:13 +02:00
alex 535ead3c12 Refactor project structure and unify frontend and backend into a single application
- Renamed project to "tilbudgivern-unified" and updated package.json accordingly.
- Created a new frontend server to proxy API requests and serve static files.
- Added SQL scripts for inserting sample data and setting up pricing tables.
- Configured Nginx for both HTTP and HTTPS with security headers and proxy settings.
- Implemented a unified server to handle API requests and serve the frontend application.
- Added endpoints for labor and material pricing management, including CRUD operations.
- Introduced testing script for frontend API interaction.
2025-09-14 21:15:00 +02:00
alex 5f101c61cf feat: Initialize Tilbudgivern project with backend and frontend setup
- Added package.json for project dependencies and scripts
- Created setup_mariadb.sql for database setup and user creation
- Documented project development plan in taskfile.txt
- Implemented test_setup.sh for system requirements and project structure checks
- Configured systemd service files for backend and frontend applications
- Added ubu-deployment-commands.sh for deployment instructions on Ubu server
2025-09-12 00:39:06 +02:00