This commit is contained in:
2026-02-12 00:40:05 +01:00
parent 6e3f5a4eff
commit e618ec5347
8 changed files with 12 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
// ⚠️ COMPILARE E CONTROLLARE PRIMA DI INIZIARE ⚠️ // ⚠️ COMPILARE E CONTROLLARE PRIMA DI INIZIARE ⚠️
const BASE_URL = 'http://192.168.1.7:3000/api'; const BASE_URL = 'http://localhost:5000/api';
const userId = document.querySelector('#userId'); const userId = document.querySelector('#userId');
const loading = document.querySelector('#loading'); const loading = document.querySelector('#loading');
const result = document.querySelector('#result'); const result = document.querySelector('#result');

View File

@@ -1,5 +1,5 @@
// ⚠️ COMPILARE E CONTROLLARE PRIMA DI INIZIARE ⚠️ // ⚠️ COMPILARE E CONTROLLARE PRIMA DI INIZIARE ⚠️
const BASE_URL = 'http://localhost:3000/api'; const BASE_URL = 'http://localhost:5000/api';
const loading = document.querySelector('#loading'); const loading = document.querySelector('#loading');
const counter = document.querySelector('#counter'); const counter = document.querySelector('#counter');
const result = document.querySelector('#result'); const result = document.querySelector('#result');

View File

@@ -1,5 +1,5 @@
// ⚠️ COMPILARE E CONTROLLARE PRIMA DI INIZIARE ⚠️ // ⚠️ COMPILARE E CONTROLLARE PRIMA DI INIZIARE ⚠️
const BASE_URL = 'http://localhost:3000/api'; const BASE_URL = 'http://localhost:5000/api';
const userId = document.getElementById('userId'); const userId = document.getElementById('userId');
const loading = document.getElementById('loading'); const loading = document.getElementById('loading');
const userProfile = document.getElementById('userProfile'); const userProfile = document.getElementById('userProfile');

View File

@@ -1,5 +1,5 @@
// ⚠️ COMPILARE E CONTROLLARE PRIMA DI INIZIARE ⚠️ // ⚠️ COMPILARE E CONTROLLARE PRIMA DI INIZIARE ⚠️
const BASE_URL = 'http://192.168.1.7:3000/api'; const BASE_URL = 'http://localhost:5000/api';
const keyword = document.querySelector('#keyword'); const keyword = document.querySelector('#keyword');
const loading = document.querySelector('#loading'); const loading = document.querySelector('#loading');
const results = document.querySelector('#results'); const results = document.querySelector('#results');

View File

@@ -1,5 +1,5 @@
// ⚠️ COMPILARE E CONTROLLARE PRIMA DI INIZIARE ⚠️ // ⚠️ COMPILARE E CONTROLLARE PRIMA DI INIZIARE ⚠️
const BASE_URL = 'http://localhost:3000/api'; const BASE_URL = 'http://localhost:5000/api';
const userId = document.querySelector('#userId'); const userId = document.querySelector('#userId');
const todoInput = document.querySelector('#todoInput'); const todoInput = document.querySelector('#todoInput');

View File

@@ -52,15 +52,15 @@ Nel tab di VSCode, vai su "Source Control" (icona del ramo git) e vedrai i file
→ commit: "HTML: aggiunta struttura modal" → commit: "HTML: aggiunta struttura modal"
``` ```
## 📝 Compiti degli Studenti ## 📝 Esercizio da Implementare
Dopo la sessione iniziale, gli studenti dovranno completare le funzionalità Dopo la sessione iniziale, si dovranno completare le funzionalità
indicate dentro il file `script.js` seguendo il workflow Git. indicate dentro il file `script.js` seguendo il workflow Git.
Dopo ogni funzionalità completata, devono fare un commit con un messaggio chiaro e significativo. Dopo ogni funzionalità completata, si deve fare un commit con un messaggio chiaro e significativo.
Ogni tanto ricordarsi di fare push per evitare di perdere il lavoro!` Ogni tanto ricordarsi di fare push per evitare di perdere il lavoro!
Gli esercizi da fare si possono dividere in 3 task principali: Gli esercizi da fare si possono dividere in 3 punti principali:
1. Popolare la tabella con i dati dei prodotti 1. Popolare la tabella con i dati dei prodotti
2. Implementare il modal dei dettagli 2. Implementare il modal dei dettagli

View File

@@ -1,6 +1,6 @@
/** /**
* Progetto finale JS - Prodotti Negozio Online * Progetto finale JS - Prodotti Negozio Online
* Crea una pagina che mostra una lista di prodotti recuperati da un'API (localhost) * Crea una pagina che mostra una lista di prodotti recuperati da un'API (localhost:5000/api/products)
* Ogni prodotto ha: id, nome, descrizione, categoria, prezzo, immagine, disponibilità * Ogni prodotto ha: id, nome, descrizione, categoria, prezzo, immagine, disponibilità
* *
* FUNZIONALITÀ: * FUNZIONALITÀ:

View File

@@ -24,7 +24,7 @@ server.use('/api', router);
// Avvio del server // Avvio del server
const host = '0.0.0.0'; const host = '0.0.0.0';
const port = 3000; const port = 5000;
server.listen(port, host, () => { server.listen(port, host, () => {
console.log(`\nJSON Server is running:`); console.log(`\nJSON Server is running:`);