Skip to content

Implement Leaderboard component, User auth, Database#3

Open
Arpit-Khandelwal wants to merge 10 commits intocode100x:mainfrom
Arpit-Khandelwal:main
Open

Implement Leaderboard component, User auth, Database#3
Arpit-Khandelwal wants to merge 10 commits intocode100x:mainfrom
Arpit-Khandelwal:main

Conversation

@Arpit-Khandelwal
Copy link

Here's a working demo: https://leaderboard.arpitkhandelwal.com/

Disclamer: Code is scrappy, not very clean or optimized, wanted feedback on a basic v0.

Implemented User auth using Github provider from Next auth
Implemented Database from supabase, (haven't watched Prisma/orm class yet). Storing user and access token for now,
Implemented Backend solely for securing all user's access tokens, when sending req for PR/issues vis github api.
Leaderboard is mostly done by v0.dev, did few changes and refactors

TODO:

  • Use octokit for github api calls
  • (maybe cron job) fetch and save all user's contribution to DB, then fetch it from Backend, one way to avoid github api rate limit (possible issue when lot of people start using)

@hkirat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants