GithubHelp home page GithubHelp logo

cube-statistics's Introduction

Cube statistics

Abstract

This is an API all about cubers, cubes and their times.

It is inspired by the data on WCA (Github) but obviously made in my style and with many fewer tables.

There are Cubers, Cubes, Times, Events, Competitions, Countries, Towns and Locations.

Each of the above has the basic Crud functionalities implemented. There are also some extra search functions fore some Objects implemented.

It is made by Kimi Löffel the owner of this project.

Overview

Install and run

First you need to clone this repository, you can accomplish this with the following.

git clone ssh://[email protected]:2222/inf-bl/be/2021/wb/team-h/kimi-l-ffel/cube-statistics.git

Then you can open a mysql console and write

source /PATH/TO/THIS/REPOSITORY/cube-statistics/src/main/resources/database/database.sql
source /PATH/TO/THIS/REPOSITORY/cube-statistics/src/main/resources/database/insertdata.sql

Or copy the SQL files in the src/main/resources/database/ folder to your graphical SQL editor and run them from there in the order database.sql then insertdata.sql.

Then cd into the repository and run the API with the following.

./gradlew bootRun

Then yor API should be ready to be used on Port 8080.

To test if all the data got loaded, open the Swagger UI and go to the section cuber-controller.

Go to the first GET method click Try it out and without entering any queries hit execute. This should've returned multiple lines of JSON.

Overview of the database

On my Entity Relation Diagram you can see the tables, so you can follow the explanation better.

There is a table for the cubers, a cuber can have one or more mainevent/s, one or more cube/s which could also be their maincube.

A cube has to belong to a manufacture which has to belong to a country. A cube also has to have an event category, which has the attributes "wcalegal" and "name" the first describes, if the event is a legal event approved by the WCA.

A time consists of a cuber, a cube and a competition and obviously a time.

A competition has to have a name, a date and a location. The location consists of a name, and a town which has a postcode as well as a name and belongs to a country.

Entity Relation Diagram of the database

Entity Relation diagram

Information

What is the WCA

The WCA is the WorldCubeAssociation who organize Competitions, store your times, the times of every competitor and distribute the official awards.

They also make the official rules on the competitions.

If an event counts as official, this means it is "WCA approved" or in other words, the WCA makes competitions in this event

cube-statistics's People

Contributors

mrspoony avatar

Watchers

 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.