Git Product home page Git Product logo

coding-fight-club's Introduction

Coding Fight Club

A software platform that helps engineers sharpen their coding skills via live competitions on algorithms

Table of content

Technologies

Backend

  • Node.js
  • Express.js
  • AWS EC2

Frontend

  • HTML
  • CSS
  • JavaScript
  • Pug
  • Axios

Web Socket

  • Socket io

Database

  • MySQL
  • AWS RDS

Networking

  • HTTP & HTTPS
  • Domain Name System (DNS)
  • Nginx
  • SSL Certificate (Let's Encrypt)

Test

  • Jest
  • Supertest
  • Artillery

Others

  • AWS S3
  • Google login API
  • GitHub login API
  • Docker

Structure

Structure screenshot

Database design

Example screenshot

Features

Demo CountPages alpha

Features ready

  • Live competition:
    • Match pages show instant mock terminal results of you and your opponent
  • Match modes choices:
    • Users can choose between the random stranger mode (with other available users online) and the invitation mode
    • Users can choose their preferred difficulty and the category of an upcoming match
  • Code rating:
    • The server rates your code based on correctness (percentage of test cases passed) and performance (if the execution time of large test cases passes their according thresholds)
  • User-related features:
    • Leaderboard ranks the top users
    • Homepage shows real-time number of online users

To-do features

  • Single mode for code practices
  • Increase questions of the library
  • Chat rooms for messaging among users
  • Community among users

Socket flowchart

Real-time user pinging

Senario: every user connected pings every five seconds

Mermaid screenshot

Starting matches with stranger mode

Senario: user A (on client A) starts a match with stranger mode and user B (on client B) is invited

Mermaid screenshot

In a match

Senario: user A (on client A) is in a match with user B (on client B) when nobody exits the match

Mermaid screenshot Mermaid screenshot

Senario: user A (on client A) is in a match with user B (on client B) when A exits the match in the middle of the match

Mermaid screenshot

Senario: user A (on client A) attemps to join a match that has ended

Mermaid screenshot

Inspiration

Project inspired by Codewars and Codility, questions based on LeetCode

Author

Wenchin Chuang @wenchin77

coding-fight-club's People

Contributors

wenchin77 avatar racketprogram avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.