A Node.js/Express app built on 23andMe's API, checking an ACVR1B mutation for higher muscle strength.
JavaScript HTML CSS
Latest commit 0815e00 Feb 20, 2015 @aostiles aostiles update dependencies
Permalink
Failed to load latest commit information.
public Man must use the palette. Oct 31, 2012
routes removing console.logs Oct 31, 2012
views doctype html Feb 20, 2015
.gitignore Finishing app. More heroku fiddling to come. Oct 31, 2012
Procfile Hello, world. Oct 25, 2012
README.md Update README.md Feb 20, 2015
app.js removing console.logs Oct 31, 2012
package.json update dependencies Feb 20, 2015

README.md

api-example-express

A Node.js/Express app built on 23andMe's API. Checks the ACVR1B gene for high muscle strength. Try it at http://knees.herokuapp.com/.

Local

Fork and clone the repository:

git clone git@github.com:yourname/api-example-express.git

Use npm to install the latest dependencies:

cd api-example-express && npm install

Get your dev credentials at https://api.23andme.com, and modify your .env file so foreman reads them into environment variables:

CLIENT_ID=xxxx
CLIENT_SECRET=xxxx
REDIRECT_URI=http://localhost:5000/receive_code/
COOKIE_SECRET=xxxx

Start foreman locally and go to http://localhost:5000/ to see it in action.

foreman start

Heroku

I host the app on Heroku. You can, too. Just setup your Heroku credentials for Node.js and make sure you update your REDIRECT_URI on https://api.23andme.com and as a Heroku config variable to match:

heroku config:set REDIRECT_URI=http://herokuurl.com/receive_code/

Make sure the CLIENT_ID, CLIENT_SECRET, and COOKIE_SECRET environment variables are set too.

heroku config:set CLIENT_ID=xxxx
heroku config:set CLIENT_SECRET=xxxx
heroku config:set COOKIE_SECRET=xxxx