Git Product home page Git Product logo

leet-track's Introduction

LeetTrack Web App ๐Ÿ“ˆ

Record, track, and visualise your Leetcode progress with a single click.

Preview

table time graph difficulty ratios topic counts

Running Locally

Installation

  1. Clone the repository with git clone https://github.com/P0u4a/leetcode-tracker-web.git
  2. Run pnpm install to install dependencies
  3. Create a .env.local file in the project root

Database

On planetscale create a new database. Copy your DATABASE_URL, DATABASE_USERNAME, DATABASE_PASSWORD, DATABASE_HOST values into your .env.local file.

Run pnpm run db:generate to generate your SQL files from the drizzle schema. Then run pnpm run db:push to push the changes into your planetscale database. You can customise these commands inside package.json.

Authentication

On clerk create a new application, and enable the GitHub OAuth provider. You will also have to go into your GitHub account and create the necessary GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET files. Instructions can be found here. Follow Clerk's instructions on the necessary enviornment variables you need to set.

To sync your database with Clerk's user database, create a webhook inside clerk, and add the WEBHOOK_SECRET into your .env.local. Further instructions on how to setup the webhook can be found here.

Running

Run pnpm run dev to start the project in dev mode.

leet-track's People

Contributors

dependabot[bot] avatar p0u4a avatar

Stargazers

 avatar

Watchers

 avatar

leet-track's Issues

api/add-entry returns 401 in production

When in development, requests to localhost:3000/api/add-entry work given that the user is logged in. In production, the route returns 401 regardless.

I suspect this is something to do with the clerk instance still being in dev mode.

Taking down the deployments until this is fixed.

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.