Refactor PVC models and update tests
- Updated the PVC models in the database and adjusted the tests accordingly to reflect the new model counts and codes. - Removed deprecated models from the JSON data for PVC systems. - Added new GLB models for "scorrevole_sf_3_ante" and "scorrevole_sf_4_ante". - Enhanced the development scripts to streamline the build process for both frontends. - Updated documentation to reflect changes in the development environment and deployment process. - Improved the styling of texture radio options for better visibility. - Fixed URL handling in the configurator to ensure proper routing and API calls.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#!/bin/bash
|
||||
# Avvia l'ambiente di sviluppo completo (vedi docs/AVVIO_LOCALE.md):
|
||||
# - backoffice Laravel (API + admin) -> http://localhost:8000
|
||||
# - app cliente preventivi (Vue) -> http://localhost:5199
|
||||
# - configuratore 3D (Vite) -> http://localhost:5173
|
||||
# Avvia l'ambiente di sviluppo completo (vedi docs/AVVIO_LOCALE.md). Un solo server, Laravel su
|
||||
# http://localhost:8000, che serve API, admin e i due frontend compilati in backoffice/public:
|
||||
# - configuratore 3D -> http://localhost:8000/configuratore/
|
||||
# - app cliente (preventivo) -> http://localhost:8000/preventivo/
|
||||
# I frontend sono ricompilati a ogni modifica (vite build --watch): ricaricare la pagina per vederle.
|
||||
# Ctrl+C ferma tutti i servizi.
|
||||
set -euo pipefail
|
||||
|
||||
@@ -22,7 +23,7 @@ if ! port_in_use 3306; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for port in 8000 5199 5173; do
|
||||
for port in 8000; do
|
||||
if port_in_use "$port"; then
|
||||
echo "Errore: la porta $port è già occupata:" >&2
|
||||
lsof -nP -iTCP:"$port" -sTCP:LISTEN >&2
|
||||
@@ -62,14 +63,14 @@ run() {
|
||||
}
|
||||
|
||||
run "laravel" "$BACKOFFICE" php artisan serve --port=8000
|
||||
run "cliente" "$CLIENTE" pnpm dev
|
||||
run "config " "$ROOT" pnpm dev
|
||||
run "cliente" "$CLIENTE" pnpm build --watch
|
||||
run "config " "$ROOT" pnpm build --watch
|
||||
|
||||
cat <<EOF
|
||||
|
||||
Servizi in avvio:
|
||||
Configuratore http://localhost:5173/?sistema=pvc&type=finestra_2_ante
|
||||
App cliente http://localhost:5199
|
||||
Servizi in avvio (attendere la prima build dei frontend):
|
||||
Configuratore http://localhost:8000/configuratore/?sistema=pvc&type=finestra_2_ante
|
||||
App cliente http://localhost:8000/preventivo/
|
||||
API http://localhost:8000/api
|
||||
Admin http://localhost:8000/admin (admin@kreiosinfissi.it / password)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user