Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/23andme/api-example-express
A Node.js/Express app built on 23andMe's API, checking an ACVR1B mutation for higher muscle strength.
https://github.com/23andme/api-example-express
Last synced: 3 months ago
JSON representation
A Node.js/Express app built on 23andMe's API, checking an ACVR1B mutation for higher muscle strength.
- Host: GitHub
- URL: https://github.com/23andme/api-example-express
- Owner: 23andMe
- Created: 2012-10-25T22:38:56.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-03-26T10:26:42.000Z (11 months ago)
- Last Synced: 2024-04-15T13:15:47.159Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 56.6 KB
- Stars: 27
- Watchers: 73
- Forks: 20
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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](https://devcenter.heroku.com/articles/nodejs) 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
```