Skip to content

Eimer-Archive/EimerArchive-Backend

Repository files navigation

Eimer Archive Backend

Discord Server

Eimer Archive is a website that hosts files as an archive, it focuses mainly on Minecraft server software but accepts other files. The backend is made with Springboot.

Usage

Requirements

  • Java 17
  • MySQL/MariaDB database

Setup

Once you create a database for this to connect to you need to run these commands to get it setup

INSERT INTO roles(name) VALUES('ROLE_USER');
INSERT INTO roles(name) VALUES('ROLE_ARCHIVER');
INSERT INTO roles(name) VALUES('ROLE_MODERATOR');
INSERT INTO roles(name) VALUES('ROLE_ADMIN');

To add the admin role to an account run this where <id> is the accounts id

insert into account_roles (account_id, role_id) VALUES (<id>, 4);