Skip to content

Technical Setup

Thord Setsaas edited this page May 29, 2020 · 9 revisions

kcapp consists of multiple parts, each connected together.

Frontend (views & routes) => Backend => Database

Frontend

Frontend contains two parts:

  1. Frontend written using MarkoJS
    • All the code for can be found in the src directory
  2. A Node webserver, running Express
    • Express contains all routes for each page

Frontend communicates with the Express webserver, which again send requests to the Backend The Node part is also running a socket.io server, which is used to push scores etc.

Backend

Backend is written using Golang This is a API containing endpoints to start matches, create players, insert scores, get statistics etc. Basically all operations to manipulate data in the database

Database

Database is running MySQL

Clone this wiki locally