From 11cd2c492f6be5cb2b7181b8d48c17ace5381769 Mon Sep 17 00:00:00 2001 From: Aleeeehh Date: Sat, 2 Aug 2025 00:55:48 +0200 Subject: [PATCH] move frontend testing outside app directory --- README.md | 6 +++++- start.sh | 2 +- {app => testing}/index.html | 0 {app => testing}/script.js | 0 4 files changed, 6 insertions(+), 2 deletions(-) rename {app => testing}/index.html (100%) rename {app => testing}/script.js (100%) diff --git a/README.md b/README.md index 0d994cc..fce9388 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,12 @@ ## 🚀 Avvio Rapido ```bash +# Rendi eseguibile lo script di avvio +chmod +x start.sh + # Avvia tutto con un comando ./start.sh +``` #Comandi utili per vedere dati db su mongosh mongosh @@ -15,4 +19,4 @@ db.items.find() ``` Il frontend sarà disponibile su http://localhost:3000 -Il backend sarà hostato localmente su http://localhost:8000 \ No newline at end of file +Il backend sarà hostato localmente su http://localhost:8000 diff --git a/start.sh b/start.sh index 5f009f7..1cca045 100755 --- a/start.sh +++ b/start.sh @@ -80,7 +80,7 @@ sleep 3 # Avvia frontend print_status "Avvio frontend..." -cd app +cd testing http-server -p 3000 -o & FRONTEND_PID=$! cd .. diff --git a/app/index.html b/testing/index.html similarity index 100% rename from app/index.html rename to testing/index.html diff --git a/app/script.js b/testing/script.js similarity index 100% rename from app/script.js rename to testing/script.js