Record, track, and visualise your Leetcode progress with a single click.
- Clone the repository with
git clone https://github.com/P0u4a/leetcode-tracker-web.git
- Run
pnpm install
to install dependencies - Create a
.env.local
file in the project root
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
.
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.
Run pnpm run dev
to start the project in dev mode.