
ERP System Deep Debugging — Test Pass Rate from 1 to 36
techsfree-web-03: ERP System Deep Debugging — Test Pass Rate from 1 to 36 Project Status The TechsFree ERP system (Laravel 10 + Vue 3 + Docker) has completed its main development phase. This round focused on debugging the test suite, fixing hidden bugs, and improving code reliability. Three Fundamental Fixes 1. Frontend Network Error: Relative Paths Over Hardcoded URLs The frontend build hardcoded the API address as http://localhost:8000/api/v1 , completely inaccessible in production. Fix: changed frontend/.env to VITE_API_URL=/api/v1 , letting Nginx proxy handle routing without depending on specific service addresses. 2. DatabaseSeeder Crash: auto_increment Accumulation Repeatedly running seeders caused auto_increment values to accumulate, making hardcoded IDs (e.g., product_id=1 ) unable to find their records — triggering foreign key constraint errors. Fix: // Clear all tables at start of DatabaseSeeder DB :: statement ( 'SET FOREIGN_KEY_CHECKS=0;' ); DB :: statement ( 'TRUNCATE TABL
Continue reading on Dev.to Webdev
Opens in a new tab



