Code Monkey home page Code Monkey logo

api-example-express's Introduction

api-example-express

A Node.js/Express app built on 23andMe's API. Checks the ACVR1B gene for high muscle strength.

Local

Fork and clone the repository:

git clone [email protected]: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

api-example-express's People

Contributors

aostiles avatar astiles23 avatar blopker avatar dependabot[bot] avatar purohit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api-example-express's Issues

Can't grant access to demo

On the live demo, when I click "grant access" I receive the following JSON:

{"error_description":"No grant_type provided.","error":"invalid_request"}

Is the app out of date with the API specs for authentication maybe?

Initial Update

Hi ๐Ÿ‘Š

This is my first visit to this fine repo, but it seems you have been working hard to keep all dependencies updated so far.

Once you have closed this issue, I'll create separate pull requests for every update as soon as I find one.

That's it for now!

Happy merging! ๐Ÿค–

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.