Inspiration
Have you ever got EXHAUSTED from LeetCode?
Have you ever felt extremely BORED when preparing for interviews?
Have you ever desired to have a companion so you won’t be tortured by coding ALONE?
According to our surveys sent to 45 coders, 86% of them find solving LeetCode problems boring when they are coding alone, and more than half of the coders have strongly wished to have a companion while coding. We ourselves, who are also coders tired of solo coding, especially during quarantine where everythings has to be remote, want to make a difference. Therefore, we created codely - a multiplayer website for coders to compete with others and learn while having fun.
What it does
In codely, users can compete with online matched coders. Coding problems and opponents are matched based on users’ rankings (bronze -> silver -> gold -> platinum -> diamond -> master). Or, users can sent invitation links to their friends to compete together. While competing, users could see the progress made by their opponent and interact with the other side via emojis & chat. After the problem is solved, we calculate the score of solution by runtime (50%), used time (30%), and memory distributuion (20%). The person with the higher score wins the match and climb the rank.
How we built it
Firstly, we brainstormed which React components are needed for codely.us, such as dashboard, compete page and result page. Then we split the work and assigned them to our teammates. Each of us was in charge of specific react components, and more experienced members took over the layout and logistics work. After each component is completed, the member requests pull request on our github repo, and the branch is merged after code review by at least 2 other teammates. Finally, we use Github page and Cloudflare to deploy our website.
Challenges we ran into
When writting inline styles for components, we found it unorganized and hard to manage as the app scales up. By searching online, we found useStyles, a custom React hook by Material UI, which helps stores css as variables and allows us to reuse them accross various components. We taught teammates to learn this hook and reconstructed our components by switching from inline styles to useStyles.
Accomplishments that we’re proud of
Since we all think the light theme in leetcode is devastating, we want to implement dark mode in Codely. However, we found trying to change to background color of every component not efficient, we wanted to find a global solution for switching to dark mode. By searching online, we came across material ui, which provides mui theme for global dark mode. By reconstructing our app layout and inserting theme provider, we have a coding website where dark mode saves coders' eyes.
What we learned
Due to the time constraint, we have to identify the problems and solve them quickly for each single step during the development, which is a desirable ability to have during our later coding career. Further, through this opportunity, our skills of collaboration with other coders significantly improved. We also understood the whole process of developing something, from having the ideas in mind to actually put them in action and make them work.
What’s next for Codely
We are planning to add backend to fully implement our features using node.js. We will implement user registration, LeetCode scraper, multi-language complier, etc.
Built With
- html5
- javascript
- material-ui
- react
- scss


Log in or sign up for Devpost to join the conversation.