/LeetSync

Automatically sync your leetcode solutions to your github account

Primary LanguageJavaScriptMIT LicenseMIT

Automatically sync your code to GitHub.

What is LeetSync?

A fork of LeetHub created by user Qasim Wani. This is a chrome extension that automatically pushes your code to GitHub when you pass all tests on a Leetcode problem.

Why did I forked LeetHub?

I had two major reasons to fork LeetHub:

  • LeetHub has not been updated since last 2-3 years and given the new chrome standards, I wanted somethig stable for myself.
  • I was having few permission issues while trying to authenticate.
Therefore, all the updates made to this fork are for my convinience. But, everyone is welcome to use this extension as they please.

How does LeetSync work?

Your LeetSync portfolio could look like this!

It's as simple as:

  1. After installation, launch LeetSync.
  2. Click on "authorize with GitHub" button to automatically set up your account with LeetSync.
  3. Setup an existing/new repository with LeetSync (private by default) by clicking "Get Started" button.
  4. Begin Leetcoding! To view your progress, simply click on the extension!

BONUS: Star this repository for further development of features. If you want a particular feature, simply request for it!

How to set up LeetSync for local development?

  1. Fork this repo and clone to your local machine
  2. Go to chrome://extensions
  3. Enable Developer mode by toggling the switch on top right corner
  4. Click 'Load unpacked'
  5. Select the entire LeetSync folder
  6. Run "npm run setup" to install the developer dependencies

Other npm commands available:

npm run               Show list of commands available
npm run format        Auto-format JavaScript, HTML/CSS
npm run format-test   Test all code is formatted properly
npm run lint          Lint JavaScript
npm run lint-test     Test all code is linted properly

And that should be it! Get Hacking...