Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.56 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.56 KB

Breadboard

Breadboard is a micro service that receives webhooks from Todoist and Habitica and keeps them in sync. It runs on node.js and uses the hapi backend framework.

Usage

To use integrations, you need to create a new application from the applications menu in Todoist. Set the OAuth redirect URL to http://localhost:3232. Next, you can use the command npm run o-auth to retrieve an o-auth url which will guide you through the OAuth process and output todoist credentials for integrations. (You might need to clear your cookies before this).

The token that you received will be added as an environment during deployment:

TODOIST_REST_API_TOKEN="token_from_browser" node lib/index.js

Habitica doesn't require the OAuth flow to be completed. Instead you can instead visit the api settings page and crab the user id and client id. These keys are also added as environment variables during deployment:

HABITICA_USER_ID="user_id",
HABITICA_API_KEY="api_token",

Habitica doesn't allow apps to be configured in an integrations console like Todoist. Instead, you need to hit their api to create them. You can use npm run setup-webhooks with the habitica environmental variables added to a run a script that will guide you through that process.

With those files in place, Breadboard is ready to be built and deployed.

Development

Kanban