Giter Club home page Giter Club logo

todoleet's Introduction

TodoLeet

Syncs Daily LeetCoding Challenge to Todoist.

CI Release

Table of Contents

Context

graph LR;
    A[Schedule Event] --> B[Sync LeetCode Coding Challenge];
    B --> C{Fetch Daily Coding Challenge};
    C -->|Success| D[Create Todoist Task];
    C -->|Failure| E[Handle Error];
    D --> F[Task Created];
    E --> G[Error Handling];

A Cloudflare Worker project that syncs Daily LeetCoding Challenge to your Todoist. The worker runs every day at 00:01 UTC and syncs the Daily LeetCoding Challenge to your Todoist.

Read more....

Requirements

  • A Cloudflare account
  • Install Wrangler CLI for Cloudflare Workers deployment

Installation

The dependencies are only used for development. So the installation is not required.

npm ci

Usage

To test out the cron trigger locally, run the following:

# 1. set TODOIST_API_TOKEN
wrangler login
wrangler secret put TODOIST_API_TOKEN

# 2. run worker
npm run dev # wrangler dev --test-scheduled --remote

# 3. test scheduled event.
curl "http://localhost:8787/__scheduled"

# 4. check if a new task is created on your Todoist

Deployment

Wrangler CLI

  1. Add TODOIST_API_TOKEN using wrangler secret put TODOIST_API_TOKEN. You may find the newly added secret under Cloudflare Worker -> Settings -> Variables. You can get your Todoist API token from https://app.todoist.com/app/settings/integrations/developer.

  2. This is only required for Wrangler actions. Add CF_API_TOKEN into your GitHub repository secrets. You can create your API token from https://dash.cloudflare.com/profile/api-tokens using the Edit Cloudflare Workers template.

  3. To publish any new changes to your Cloudflare Worker, run wrangler deploy

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

  1. Fork this
  2. Create your feature branch (git checkout -b tommy/fooBar)
  3. Commit your changes (git commit -am 'feat: add some fooBar', make sure that your commits are semantic)
  4. Push to the branch (git push origin tommy/fooBar)
  5. Create a new Pull Request

References

FAQ

Is it safe to publish wrangler.toml with account_id?

Yes.

todoleet's People

Contributors

ngshiheng avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

maxsimmonds1337

todoleet's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

asdf
.tool-versions
  • node 19.3.0
github-actions
.github/workflows/ci.yml
  • actions/checkout v4@3df4ab11eba7bda6032a0b82a6bb43b11571feac
  • actions/setup-node v4
  • cloudflare/wrangler-action v3
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-node v4
npm
package.json
  • prettier 3.2.5
  • wrangler 3.32.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.