From dfaf542c4b37fb120a43a34ec2f3458128c75a7f Mon Sep 17 00:00:00 2001 From: Fabio Date: Wed, 31 Dec 2025 17:48:50 +0100 Subject: [PATCH] 2 commit --- README.md | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..712397c --- /dev/null +++ b/README.md @@ -0,0 +1,74 @@ +# App per vedere tutte le mie app in un unica schermata + +si compone di + +- un server che condivide la lista delle apps + fa utilizzo di un server giĆ  attivo mongoDB +- la UI del server + che permette di inserire e modificare tutti i dati delle apps +- una app che funziona sia su smartphone che su PC + +## Server + +andare in + + cd server/backend + +installare + + npm ci install + +editare .env + +```sh + GNU nano 8.4 server/backend/.env +# === SERVER CONFIG === +PORT=3000 + +# === JWT CONFIG === +# Cambialo SEMPRE in produzione +JWT_SECRET=master66 + +# === MONGO CONFIG === +# In locale: +# MONGO_URI=mongodb://localhost:27017/mydb +# +# In Docker (usato dal docker-compose): +MONGO_URI=mongodb://root:example@192.168.1.3:27017/myapphttps?authSource=admin +# === UPLOADS === +# Cartella dove Express serve le icone +UPLOAD_DIR=uploads +``` + +avviare + + npm start + +il server parte su 182.168.1.3:3000 ed ho settato nginx come + + my.patachina2.casacam.net + +## User Interface del server + + +andare in + + cd server/frontend + +far partire la UI x es su porta 8282 + + npx http-server . -c-1 -p 8282 + +da qui si possono modificare le apps che vogliamo visualizzare + +## App principale + + +andare in + + cd app + +far partire la App x es su porta 8181 + + npx http-server . -c-1 -p 8181 +