Skip to content

Midas847/LeetCode-Predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode Predictor

This is a leetcode predictor whcih predicts ratings of weekly and biweekly contest 2-3 hrs right after contest ends.
The site is available at https://leetcode-predictor.vercel.app/
Go check it out !!!

About

It takes about 4-5 days for leetcode to update the contest ratings of participants. So you have to wait for a long time to know your rating changes. This application predicts accurate leetcode rating changes for all the contestants within a few minutes of completion of the contest.

website preview

How It Works

This project is written in MERN stack. It used C++ addon to calculate ratings based on ELO rating mechanism. You can check it out here [https://leetcode.com/discuss/general-discussion/468851/New-Contest-Rating-Algorithm-(Coming-Soon)]

Database

Backend

  • Node.js: open-source, cross-platform JavaScript runtime environment
  • Express : Node.js framework
  • C++ addon : core prediction algorithm implementation and acceleration
  • Bottleneck : lightweight and zero-dependency Task Scheduler and Rate Limiter for Node.js and the browser
  • Node-cache : A simple tool for caching data.
  • Axios : To make API calls.

Frontend

  • React: most popular front-end library
  • TailwindCSS : modern CSS framework and its component library

Development

Follow these steps to run the app locally.

Backend Deployment

C++ addon

Delete the build folder before proceeding.

git clone https://github.com/Midas847/LeetCode-Predictor.git
cd Rating_Algorithm
npm i -g node-gyp
node-gyp configure
node-gyp build

Sever

git clone https://github.com/Midas847/LeetCode-Predictor.git
cd api
npm install
npm start

Frontend Deployment

git clone https://github.com/Midas847/LeetCode-Predictor.git
cd client
npm install
npm start

Environment variables

MONGODB_URL: your mongodb collection URL

Contributors

To-Do

Implement job scheduling

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published