wsmoak / fitbit_stats

Log in with OAuth and get stats from Fitbit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FitbitStats

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with cd assets && npm install
  • set CLIENT_ID, CLIENT_SECRET, and REDIRECT_URI environment variables
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Click 'Log in with Fitbit' and authorize the app to access your data.

To interact with the app in IEX: $ iex -S mix phx.server

To clear the User database FitbitStats.Repo.delete_all(FitbitStats.Accounts.User) https://hexdocs.pm/ecto/Ecto.Repo.html#c:delete_all/2

About

Log in with OAuth and get stats from Fitbit


Languages

Language:Elixir 82.7%Language:HTML 9.1%Language:JavaScript 8.1%Language:CSS 0.1%