Demo of Jawbone UP authentication and API access using passport and the jawbone-up Javascript API wrapper
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
LICENSE
README.md
app.js
package.json

README.md

up-api-auth-demo

Demo of Jawbone UP authentication and API access using passport, node-jawbone-up and mongoose on node. It authenticates through jawbone oauth2, pulls the users name, steps and sleep and stores the user and access token in a mongo database.

TO INSTALL: npm install

TO RUN: NODE_PATH=lib node app.js

  • setting the PATH at runtime is required to support the modular file structure.

TO INSTALL FREE MONGO DB: http://www.mongodb.org/downloads

TO CONFIGURE:

  1. Sign up for app permissions on jawbone and facebook(optional)
  2. Configure the servers in config/auth.js to be yours
  3. Configure the mongo db settings in app.js

Passport, node-jawbone-up and mongoose will install with up-api-auth-demo.

For info on passport, node-jawbone-up and mongoose check out:

https://github.com/jaredhanson/passport

https://github.com/ryanseys/node-jawbone-up

https://github.com/LearnBoost/mongoose