-
Notifications
You must be signed in to change notification settings - Fork 9
Added detailed README with features and setup #11
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
ba2ead4
Added detailed README with features and setup
adityak-06 132b92a
updated readme file
adityak-06 019e37b
Update README as per review feedback
adityak-06 0490359
final changes made
adityak-06 3ebbf67
Update README.md
adityak-06 36ad42e
Update README.md
adityak-06 0de8ddf
Update README.md
adityak-06 075dcf4
Update README.md
adityak-06 5ecd3bc
Update README.md
adityak-06 09ccc92
Update README to streamline related repositories section
jagdish-15 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1 +1,116 @@ | ||||||||||||
| # leetcode-ranking | ||||||||||||
| # CodePVG LeetCode Ranking | ||||||||||||
|
|
||||||||||||
| A web-based platform developed for CodePVG to track and rank students based on their LeetCode performance. | ||||||||||||
| It allows users to register with their LeetCode username and automatically fetches their problem-solving statistics to display on a leaderboard. | ||||||||||||
|
|
||||||||||||
| --- | ||||||||||||
|
|
||||||||||||
| ## Purpose | ||||||||||||
|
|
||||||||||||
| The goal of this project is to: | ||||||||||||
|
|
||||||||||||
| - Encourage consistent problem-solving among students | ||||||||||||
| - Create a competitive yet motivating environment | ||||||||||||
| - Provide visibility into individual coding progress | ||||||||||||
|
|
||||||||||||
| --- | ||||||||||||
|
|
||||||||||||
| ## Features | ||||||||||||
|
adityak-06 marked this conversation as resolved.
Outdated
|
||||||||||||
|
|
||||||||||||
| ### User Registration | ||||||||||||
| - Users can register using their name and LeetCode username | ||||||||||||
| - Accepts both direct usernames and profile links | ||||||||||||
| - Validates whether the LeetCode user exists before registration | ||||||||||||
|
|
||||||||||||
| ### Leaderboard System | ||||||||||||
| - Displays ranked users based on their LeetCode statistics | ||||||||||||
| - Automatically updates rankings based on fetched data | ||||||||||||
| - Provides a clean interface for easy comparison | ||||||||||||
|
|
||||||||||||
| ### Automated Data Fetching | ||||||||||||
| - Periodically fetches user data using the LeetCode API | ||||||||||||
| - Updates stored data without manual intervention | ||||||||||||
| - Keeps leaderboard information up-to-date | ||||||||||||
|
|
||||||||||||
| ### User Interface | ||||||||||||
| - Simple and clean UI design | ||||||||||||
| - Smooth user experience with loading states | ||||||||||||
| - Includes blur and spinner animation during registration | ||||||||||||
|
|
||||||||||||
| ### Input Handling and Validation | ||||||||||||
| - Extracts username from full LeetCode profile links | ||||||||||||
| - Prevents invalid or non-existent usernames | ||||||||||||
| - Avoids duplicate or incorrect entries | ||||||||||||
|
|
||||||||||||
| ### Error Handling | ||||||||||||
| - Handles API failures gracefully | ||||||||||||
| - Displays alerts for invalid inputs | ||||||||||||
| - Prevents multiple submissions during requests | ||||||||||||
|
|
||||||||||||
| --- | ||||||||||||
|
|
||||||||||||
| ## Tech Stack | ||||||||||||
|
adityak-06 marked this conversation as resolved.
Outdated
|
||||||||||||
|
|
||||||||||||
| | Layer | Technology | | ||||||||||||
| |----------|------------------------| | ||||||||||||
| | Frontend | HTML, CSS, JavaScript | | ||||||||||||
| | Backend | Node.js | | ||||||||||||
| | API | LeetCode API | | ||||||||||||
|
|
||||||||||||
| --- | ||||||||||||
|
|
||||||||||||
| ## Project Structure | ||||||||||||
|
|
||||||||||||
| ``` | ||||||||||||
| leetcode-ranking/ | ||||||||||||
| │── frontend/ # UI (HTML, CSS, JS) | ||||||||||||
| │── data/ # Stored user data | ||||||||||||
| │── scripts/ # Automation scripts | ||||||||||||
| │── server.js # Backend server | ||||||||||||
|
adityak-06 marked this conversation as resolved.
Outdated
|
||||||||||||
| │── package.json | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| --- | ||||||||||||
|
|
||||||||||||
| ## How to Run Locally | ||||||||||||
|
|
||||||||||||
| ### 1. Clone the repository | ||||||||||||
|
|
||||||||||||
|
adityak-06 marked this conversation as resolved.
Outdated
|
||||||||||||
| ```bash | ||||||||||||
| git clone https://github.com/YOUR-USERNAME/leetcode-ranking.git | ||||||||||||
| cd leetcode-ranking | ||||||||||||
| ``` | ||||||||||||
|
|
||||||||||||
| ### 2. Install dependencies | ||||||||||||
|
|
||||||||||||
|
|
||||||||||||
| npm install | ||||||||||||
| cd frontend | ||||||||||||
| npm install | ||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
|
|
||||||||||||
| ### 3. Run the project | ||||||||||||
|
|
||||||||||||
|
|
||||||||||||
| npm run dev | ||||||||||||
|
|
||||||||||||
| or | ||||||||||||
|
|
||||||||||||
| node server.js | ||||||||||||
|
adityak-06 marked this conversation as resolved.
Outdated
|
||||||||||||
|
|
||||||||||||
| ## Usage | ||||||||||||
|
|
||||||||||||
| 1. Open the registration page | ||||||||||||
| 2. Enter your name and LeetCode username | ||||||||||||
| 3. Submit the form | ||||||||||||
| 4. View your ranking on the leaderboard | ||||||||||||
|
adityak-06 marked this conversation as resolved.
Outdated
|
||||||||||||
|
|
||||||||||||
| --- | ||||||||||||
|
|
||||||||||||
| ## Contributing | ||||||||||||
|
|
||||||||||||
| Contributions are welcome. | ||||||||||||
|
|
||||||||||||
| - Fork the repository | ||||||||||||
| - Create a new branch | ||||||||||||
| - Make your changes | ||||||||||||
| - Submit a Pull Request | ||||||||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.