Skip to content

seven9nrh/gacha-java

Repository files navigation

gacha-java

Java CI with Maven CodeQL Dependency Review

Features

  • You can sign in as manager or player
  • Managers can create players and items
  • Players can play Gacha
  • You can set the rarity of the item, and the item will be discharged with a probability according to the rarity.

Requirements

Building requires:

  1. Java 17
  2. Maven (3.8.5+)
  3. Docker

Installation

mvn clean install

Getting Started

Database

  1. Deploy mysql
cd database
docker stack deploy -c stack.yml mysql
  1. Create Database
CREATE DATABASE 'gachadb';
CREATE USER 'gacha'@'localhost' IDENTIFIED BY 'gacha';
GRANT ALL PRIVILEGES ON gachadb * . * TO 'gacha'@'localhost';

Server

cd application
mvn spring-boot:start

REST API

Web Browser

http://localhost:8080

Documentation

Releases

No releases published

Packages

No packages published