Skip to content

LeetCode Profiles :- Generate your LeetCode Stats | Add your LeetCode Stats to the HallOfFame

License

Notifications You must be signed in to change notification settings

druvkotwani/leetcode-profiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

π™»πšŽπšŽπšπ™²πš˜πšπšŽ π™Ώπš›πš˜πšπš’πš•πšŽπšœ

A platform to create your LeetCode statistics and showcase your LeetCode profile globally.

Screenshot 2023-11-23 154638

Languages/Tools

πŸ‘©πŸ½β€πŸ’» Demo

Check out the website: π™»πšŽπšŽπšπ™²πš˜πšπšŽ π™Ώπš›πš˜πšπš’πš•πšŽπšœ

πŸ› οΈ Installation Steps

1. Fork the project:

  • Fork the project. Click on the icon in the top right to get started.

2. Create a New Branch:

  • On your new repository's page, click the gray main button in the upper left to reveal a dropdown menu.
  • Enter the name of your new branch in the text box. (Branch names usually make a reference to what is being changed. Example: FixMargin).
  • Click on Create branch <new branch name> and this will automatically take you to your new branch. You can make edits on the main branch, but this may cause issues down the line. Best practice is to create a new branch for each separate issue you work on. That way, your main branch remains in sync with leetcode-profiles main branch.

3. Setup Firebase:

  • Below are the steps to setup firebase.

4. Edit:

  • Do the desired changes, you want.

5. Raise a Pull Request:

Setting up Firebase

  1. Firebase Account Setup:

  2. Create a Firebase Project:

    • Create a new Firebase project via the Firebase Console.
  3. Add Firebase to your web app:

    • Set up the firebase for your webapp and then Add Firebase SDK.
  4. Create Database(firestore Database)

  5. Create a collection with the file format below (not necessary):

    πŸ‘‡πŸ½ File Format

  • userName(String) = druv_kotwani
  • website(Map) = {link: https://dhruvkotwani.me/, text: dhruvkotwani.me}
  • badgeImg(String) = https://leetcode.com/static/images/badges/dcc-2023-10.png
  • mediumBeats(String) = 85.6%
  • easyBeats(String) = 96.9%
  • totalQuestions(Number) = 2940
  • fullName(String) = Dhruv Kotwani
  • github(Map) = {link: https://github.com/druvkotwani, text: druvkotwani}
  • image(String) = https://assets.leetcode.com/users/avatars/avatar_1672478903.png
  • hardBeats(String) = 77.62
  • totalSolved(Number) = 282
  • easySolved(String) = 165
  • linkedin(Map) = {link: https://linkedin.com/in/dhruv-kotwani, text: dhruv-kotwani}
  • rank(String) = 230,203
  • easyTotal(String) = 746
  • mediumSolved(String) = 97
  • hardTotal(String) = 645
  • hardSolved(String) = 20
  • twitter(Map) = {link: https://twitter.com/druv_kotwani, text: druv_kotwani}
  • mediumTotal(String) = 1549
  1. Replace the firebaseConfig inside firebase.js with your actual apiKeys, and rest of the data
  2. Add now you are good to go

πŸš€ Running Frontend

To run locally, just cd into the client and run the following commands to run node modules and serve the website locally.

npm i
npm run dev

πŸš€ Running Backend(only necessary if you had made changes in the api)

To run locally, just cd into the server and run the following commands to run node modules and serve the website locally.

npm i
node index.js

Drop a ⭐ if you like this project