Skip to content

maxutter/up-api-auth-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Demo of Jawbone UP authentication and API access using passport and the jawbone-up Javascript API wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published