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:
- Sign up for app permissions on jawbone and facebook(optional)
- Configure the servers in config/auth.js to be yours
- 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