Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/diohabara/leetcodedailyreminder

Create a LeetCode-daily-problem task at Todoist
https://github.com/diohabara/leetcodedailyreminder

deno leetcode todoist typescript

Last synced: 6 days ago
JSON representation

Create a LeetCode-daily-problem task at Todoist

Awesome Lists containing this project

README

        

# LeetCodeDailyReminder

Create a LeetCode-daily-problem task at Todoist

## How to Set Up

- Get Todoist's API token [here](https://todoist.com/app/settings/integrations)
- Set `TODOIST_API_TOKEN` as an environment variable in `.env` like this
- [ ] Rewrite `.env.template`
- [ ] Run `mv .env.template .env`

```text
TODOIST_API_TOKEN=??? # replace ??? by the API token
```

- Run [`gh secret set -f .env`](https://cli.github.com/manual/gh_secret_set) so
that the secrets set in GitHub
- Rewrite 2 `FIXME` in [`main.ts`](main.ts) to set `labels` and `section_id`.

## How to Run

```bash
deno run --allow-all main.ts
```

## References

- [LeetCode GraphQL](https://jerrynsh.com/how-i-sync-daily-leetcoding-challenge-to-todoist/)
- [Tosist API v2](https://www.npmjs.com/package/@doist/todoist-api-typescript)