Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Leaderboard component, User auth, Database #3

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

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