Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 1.02 KB

README.md

File metadata and controls

23 lines (14 loc) · 1.02 KB

this is a good source to set up mongodb https://www.mongodb.com/developer/languages/javascript/node-connect-mongodb/

  • mongodb altas : cloud database
  • mongodb compass : GUI

Make sure BE data has been stored in mongodb collection successfully, here are the steps :

  • Add data in mongodb altas 1.Click in cluster Screenshot 2024-07-13 at 17 25 11 2.Add data (data in CSV format or JSON format) Screenshot 2024-07-13 at 17 26 53

  • Add data in mongodb compass (this one is more straightforward)

    1. Screenshot 2024-07-13 at 17 28 51

To start the project :

  • turn on mongodb
  • make sure in server.js mongodb already connect successfully through uri
  • terminal : node server.js