Mongodb - for storing user objects (username, password, Box app user id)
Follow the steps below to get the app running on your local machine.
First, clone the repository and install dependencies.
$ git clone https://github.com/mattmitchell6/box-node-passport-sample.git
$ cd box-node-passport-sample
$ npm installCreate a new Box application and add the generated configuration variables (with generated private key) to the local.js file in the config folder (rename local.sample.js to local.js).
Add the domain, http://localhost:3000 to the list of "Allowed Origins" in the Box Developer Console.
Make sure mongoDB is running in a separate terminal tab. This local database is used to store the user objects (including the created box app user id).
$ mongodStart the server.
$ npm startOpen a web browser and navigate to http://localhost:3000/ to see the example in action.