Sample API implementation to use with capy-tracker package!
The API was built over Rails 5.0.0.1. It also provides a clean GUI for consulting results.
You are expected to have Rails and Ruby 2.3 installed in your machine.
git clone https://github.com/haskellcamargo/capy-tracker-api.git
cd capy-tracker-api
gem install bundle
bundle install
bin/rails db:create
bin/rails db:migrate
bin/rails server
Please, note that our example is configured to run on port 3000 (the default one). Don't change it, now, ok?
The API is under /api path. It's parameters are documented in this project.
- See the list of users who contacted you
- Get the user profile picture from Gravatar
- Monitor how long user stays in your page
Note: Use .trackTime() after .start() to observe.
Ah, but, Celão, why isn't this on Heroku?
Because sometimes 💩 happens. I've configured sqlite initially, then, later, I realized Heroku doesn't, eh, likes it that much.
Made with ❤️ and energy drinks!



