Skip to content

mattmitchell6/box-node-passport-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

Mongodb - for storing user objects (username, password, Box app user id)

Node.js (v9)

Instructions

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 install

Create 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).

$ mongod

Start the server.

$ npm start

Open a web browser and navigate to http://localhost:3000/ to see the example in action.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •