Skip to content
Gather usage statistics from BikeMi emails
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
get-data.js
package.json
save-data.js
serverless.yml
yarn.lock

README.md

BikeMi Stats 🚲

serverless Scrutinizer

Gather usage statistics from BikeMi emails. ✉️

It uses serverless for the deploy so you can easily deploy it to different FaaS provider. I'm using webtask if you're interested.

What:

  • Mailgun

    It makes an HTTP POST to defined URL once an email arrives

  • MongoDB

    Stores all the bike usages. Remember to define the MONGO_URL env/secret!

  • Slack

    Notifies (if you remember to define the SLACK_URL env/secret) you of the bike return. Useful since this way you can delete the mail after forwarding it to the service.

How:

  • Deploy somewhere
  • Setup your domain on Mailgun
  • Add a rule to forward the message with subject BikeMi, restituzione registrata to your webhook

TODO

  • Show the gathered data somehow 😅
You can’t perform that action at this time.