2 commit
This commit is contained in:
parent
5b0e7cccd9
commit
dfaf542c4b
1 changed files with 74 additions and 0 deletions
74
README.md
Normal file
74
README.md
Normal file
|
|
@ -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
|
||||||
|
|
||||||
Loading…
Reference in a new issue