Applicazioni Web in React, Bootstrap, MongoDB, Express/PostMan per fare GET,POST,PUT,DELETE sul database

Indice del libro
  • 2) Avviare il server MongoDB, aprire un terminale nella dir mongo_database e digitare:
mongod --dbpath = data_items --bind_ip 127.0.0.1


  • 3) Avviare il web server Node Express, aprendo un terminale nella dir ItemsServer e digitare:
npm start


  • 4) Aprire Postman e creare un nuovo articolo nel database tramite il metodo POST :
  • 5) modificare un articolo tramite il metodo PUT e il suo id:
  • 6) Visualizzare i dati nel database tramite il metodo GET:
  • 7) Cancellare un articolo tramite il metodo DELETE e il suo ID