Final course project for M101JS - MongoDB for NodeJS Developers
You can try this app locally by cloning and running it.
Follow these steps:
- Make sure you have installed mongodb, nodejs and npm
- Open terminal and clone this repository in your own local machine: git clone https://github.com/xantux/mongomart-app.git
- In the terminal go to the root folder of the project: cd mongomart-app
- Install all dependencies by typing the command: npm install
- Make sure you run in other terminal instance the mongo process by typing the command mongod
- Import the "item" collection: mongoimport -d mongomart -c item data/items.json
- Import the "cart" collection: mongoimport -d mongomart -c cart data/cart.json
- Run the application by typing node mongomart
- In your browser visit http://localhost:3000