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 Turso create a new database, note down the connection url of your new DB. Make sure you also have the Turso CLI installed. Then run turso auth token
to get your auth token for connecting to the DB. Copy your TURSO_AUTH_TOKEN
and TURSO_CONNECTION_URL
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 Turso database. You can customise these commands inside package.json
.
Run pnpx auth secret
to generate the AUTH_SECRET
env variable for NextAuth.
Create a test OAuth app on your GitHub account. Set the callback URL to http://localhost:3000/api/auth/callback/github
and copy over the client ID and client secret into your .env.local
file, named as GITHUB_CLIENT_ID
and GITHUB_CLIENT_SECRET
respectively.
Run pnpm run dev
to start the project in dev mode.