Create a file named .env
in the root directory and add the following:
FITBIT_CLIENT_ID=
FITBIT_CLIENT_SECRET=
FITBIT_API_VERSION=1
OUR_SERVER_URL=http://localhost:3001
For FITBIT_CLIENT_ID
and FITBIT_CLIENT_SECRET
, you can get the values corresponding to your registered app from https://dev.fitbit.com/apps.
yarn install
yarn start
Go to http://localhost:3001/authorize in your browser.