LeetCode Compete is a project for you and your friends to compete your leetcode submissions like a competition in apple fitness. It aims to make the preparation for jobs easier and more fun.
For more information, learn about rules.
This project also provides a docker image for users who want to private deployment. Check deploy for instructions.
👉Check out the demo.👈
- create
.env
file
* replace{VAR}
with stuff that that you like.
touch .env
echo port={PORT} >> .env
echo mongodb_user={MONGODB_USER} >> .env
echo mongodb_password={MONGODB_PASSWORD} >> .env
Here is an example of .env
file.
port=3333
mongodb_user=ohmygosh_im_dbadmin
mongodb_password=foobar
- build a docker image and startup a container.
docker-compose up --build -d
- check container status
docker ps
If the output looks like below, it is running well.
CONTAINER ID IMAGE COMMAND PORTS
xxxxxxxxxxxx leetcode-compete_s "/app/entrypoint.sh" 0.0.0.0:{PORT}->80/tcp, :::{PORT}->80/tcp
Leetcode-Compete
is up and running successfully! Open http://localhost:{PORT} in your browser to get start!
// TODO
There are a lot of work going on.
- persistent competition result
- create scheduled trigger to compute result every midnight
- medallion art
- cronjob update leetcode information
- i10n (if needed)