Leetcode weekly and biweekly contest rating predictor.
- APScheduler: background tasks
- Numpy and Numba: core prediction algorithm implementation
- FastAPI: restful API
- Jinja: HTML templates for server-side rendering
- Materialize: responsive front-end framework
- Echarts: data visualization
Running on 🔗 lccn.lbao.site
Leetcode.com 🔥👩🏻💻New Contest Rating Algorithm👨🏽💻🔥 - It's HERE!
git clone git@github.com:baoliay2008/lccn_predictor.git
cd lccn_predictor
python3.10 -m virtualenv venv/
source venv/bin/activate
pip3 install -r requirements.txt
python main.py
uvicorn api.fastapi:app --host 0.0.0.0 --port 55555
git clone git@github.com:baoliay2008/lccn_predictor.git
cd lccn_predictor
# write production environment mongodb config
cp config.yaml.template config.yaml
vi config.yaml
# build docker image
docker image build -t lccn_predictor:0.0.1 .
# create docker volume
docker volume create lccn_predictor
# run container
docker run -d -v lccn_predictor:/lccn_predictor -p 55555:55555 --name lp lccn_predictor:0.0.1
docker exec -it lp bash
docker container stop lp
docker container start lp
MIT License