CPEN400A Bookstore Application - Group 12

Running Locally

  1. Make sure you have Node.js and MongoDB installed.

  2. Install the application dependencies:

npm install
  1. Start the Mongo server (if it is not already running):

    sudo mongod
  2. Initialize the Mongo database:

mongo
> load("initdb.js")

This step can be repeated at any time to reset the database to its initial state.

  1. Start the application web server:
npm start

The application should now be running at localhost:5000.

NOTE: In order to access the application a valid username is required to authenticate. The following usernames are valid (case sensitive):

  • jacob
  • bernadette
  • xueqin
  • abraham