Skip to content

zuketo/meanstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

======================================== MEAN Stack Sample Application: MongoMart

MongoMart is a sample application for learning the MEAN stack: MongoDB, Express, Angular, and NodeJS.

The sample application displays items from a MongoDB database, and animates transitions between viewing all items and details for an individual item.

Installation Instructions

  • Run MongoDB and load the sample dataset (details below)
  • Install NodeJS: https://nodejs.org/en/download/
  • Run "npm install" (from the root directory of this application)
  • Run "npm start" (from the root directory of this application)
  • Visit "localhost:3000" to view the application

Run MongoDB and Load the Sample Dataset

  • Download and extract MongoDB: https://www.mongodb.org/downloads
  • Ideally, add the contents of the MongoDB 'bin' directory to your PATH system variable
  • Make a directory for your database files, e.g. mkdir ~/mongomart
  • Start MongoDB, specifying the path for database files (to run MongoDB as a background process use the --fork option and --logpath)
mongod --dbpath ~/mongomart
  • Open a new terminal window and load the MongoMart dataset
mongoimport -d test -c items data/items.json
  • Ensure the items were correctly loaded into MongoDB
mongo
> db.items.find().count()
23

About

MEAN Stack Sample Application: MongoMart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published