A platform to create your LeetCode statistics and showcase your LeetCode profile globally.
Check out the website: 𝙻𝚎𝚎𝚝𝙲𝚘𝚍𝚎 𝙿𝚛𝚘𝚏𝚒𝚕𝚎𝚜
- Fork the project. Click on the
icon in the top right to get started.
- 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, yourmain
branch remains in sync withleetcode-profiles
main
branch.
- Below are the steps to setup firebase.
- Do the desired changes, you want.
- And finally, create a Pull Request!
- Great job!
-
Firebase Account Setup:
- Sign up for a free Firebase account at Firebase Console.
-
Create a Firebase Project:
- Create a new Firebase project via the Firebase Console.
-
Add Firebase to your web app:
- Set up the firebase for your webapp and then Add Firebase SDK.
-
Create Database(firestore Database)
-
Create a collection with the file format below (not necessary):
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
- Replace the firebaseConfig inside firebase.js with your actual apiKeys, and rest of the data
- Add now you are good to go
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
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