This demo assumes that you have MongoDB installed and are running a local instance of a test
database. If you do not, follow the steps:
- Install MongoDB: https://www.mongodb.com/docs/manual/installation/
- Run
mongod
in the terminal
- If connection failed, the issue may be that
data/db
directory is not created or pointed to- Create
data/db
directory - Point to the directory and run the database
mongod --dbpath PATH_TO/data/db
- Create
-
Download or clone this repo.
-
Navigate to the
MongoDB
directory from the command line and runnpm install
to install all dependencies (Express, Mongoose, ZingChart). -
Run
node server.js
to populate the database with the included test data and to start the Express server. -
Navigate to
localhost:3000
using your favorite browser. -
Pat yourself on the back for a job well done!