Skip to content

keyi6/leetcode-compete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Compete

leetcode-compete logo

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.👈

deploy

  1. 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
  1. build a docker image and startup a container.
docker-compose up --build -d
  1. 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
  1. Leetcode-Compete is up and running successfully! Open http://localhost:{PORT} in your browser to get start!

development

// TODO

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)