Skip to content

sniezek/tabletop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

tabletop

Description

Tabletop is a website where users can organise and join tabletop games events.

Matches can be either sparrings or tournaments.

Tournament scores are submitted by events' organisers, therefore each registered game has a ranking of players.

Users have a variety of statistics and they can get achievements for being active players.

Team

Database

Starting stanalone

Start a MySQL server (mysqld.exe). At first you have to connect to it with a MySQL client (mysql.exe) and create the database and user and grant all permissions:

mysql> create database db_example; -- Create the new database
mysql> create user 'springuser'@'localhost' identified by 'ThePassword'; -- Creates the user
mysql> grant all on db_example.* to 'springuser'@'localhost'; -- Gives all the privileges to the new user on the newly created database

Starting in Docker

Assuming you have alredy started Docker, type:

docker run --name demo-mysql -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=db_example -e MYSQL_USER=springuser -e MYSQL_PASSWORD=ThePassword -p 3306:3306 -d mysql:5.6

Server

Starting

$ cd server
$ gradlew bootRun

Server will be available at localhost:8080.

Stack

  • Spring Boot
  • Spring Security
  • Spring Data JPA
  • Spring Data REST

App

$ cd app

Setup

Execute this once:

$ npm install

And then every time you want to start the application:

$ npm start

App will be available at localhost:3000

Stack

Useful commands

Extracted from React Redux starter kit:

npm run <script> Description
start Serves your app at localhost:3000. HMR will be enabled in development.
compile Compiles the application to disk (~/dist by default).
lint Lint all .js files.
lint:fix Lint and fix all .js files. Read more on this.

Achievements

You need:

Setup

To run it type:

$ sbt run

Service will be available at localhost:9000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published