A sample app that demostrates how to connect to Moves.
Ruby HTML JavaScript
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 5 commits ahead of movesapp:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public/js
views
.gitignore
Gemfile
Gemfile.lock
Procfile
README.md
app.json
app.rb
config.ru

README.md

Deploy

About this app

This app counts how many days in a month you went to the place you specify, using Moves API. For example, a freelance can easily counts working days and charges the fee to the client. It is based on the sample app that Moves provides.

How to setup

If you have an account, you can easily run this app on Heroku.

  1. Click the "Deploy to Heroku" button at the top of this README.

  2. Set the following config variables. You need to create a developer account at https://dev.moves-app.com/ to get Moves client id and client secret.

$ heroku config:set MOVES_CLIENT_ID=<your client id>
$ heroku config:set MOVES_CLIENT_SECRET=<your client secret>
$ heroku config:set WORKING_PLACE_NAME=<place name that you want to count how many days you went there>

How to use

After authorizing by clicking "Authorize Moves API Demo" button, select "Workdays" at the top of the menu. You get how many days you visited the place you specified in the previous month.

moves api sample