Created as a project for M101JS - MongoDB for NodeJS Developers at Mongo University, Mongomart is a simple Ecommerce web app built using mongoDB Node.js driver and Express
https://mongomarty.herokuapp.com/
git clone https://github.com/muubar/mongomart.git
npm install
node mongomart.js
to crate and populate a mongomart database, make sure you have a mongod running version 3.2.x of MongoDB, then run the following commands:
Import the "item" collection: mongoimport -d mongomart -c item data/items.json
Import the "cart" collection: mongoimport -d mongomart -c cart data/cart.json
in order to use the search functionality, a text index must be created, run mongo shell using mongo
command, and then run the following commands:
use mongomart
db.item.createIndex({title: "text", slogan: "text", description: "text"})