Skip to content

CammarataLudovico/Archittettura-Software-NodeJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Front end

  • creare cartella frontend
  • Pagina HTML della pizzeria
  • bottone per elenco ordini
  • bottone per creare un nuovo ordine
  • ad ogni bottone abbinare funzione che fa il console.log

Back end

  • creare cartella backend (o spostare l'eventuale già fatto)
  • creare server express
  • creare rotta /ping
  • creare rotte /prodotti e /prodotti/<id>

Steps

Step 1

Avvio di un cluster con PM2 (va installato globalmente con npm i -g pm2)

  • script npm run start:pm2 per avviare il backend tramite PM2
  • script npm run start:pm2cluster per avviare N istanze del backend in base a quanti core ha il mio pc.

Step 2

docker compose up --build

Troubles

  • se non parte docker provare con bcdedit /set hypervisorlaunchtype auto

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors