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
mongodin the terminal
- If connection failed, the issue may be that
data/dbdirectory is not created or pointed to- Create
data/dbdirectory - Point to the directory and run the database
mongod --dbpath PATH_TO/data/db
- Create
-
Download or clone this repo.
-
Navigate to the
MongoDBdirectory from the command line and runnpm installto install all dependencies (Express, Mongoose, ZingChart). -
Run
node server.jsto populate the database with the included test data and to start the Express server. -
Navigate to
localhost:3000using your favorite browser. -
Pat yourself on the back for a job well done!