WebApp Project for Moba3. Onlineshop with React and Node.js
- clone the project
- run
npm install - run
npm update - run
npm start(default port is 3000)
- make db name= moba3db
- code:
use moba3db
- create collection name = products
- code:
db.createCollection("products")
- import whiskysJSON.json. In path from MongoDB is mongoimport, I put also the whiskys.json file in there
- code:
mongoimport --jsonArray --db moba3db --collection products --file whiskys.json
run mongo: Then use moba3db.
db.createCollection("products").
mongoimport --jsonArray --db moba3db --collection products --file whiskys.json