- create database theroom;
- create user 'springuser'@'%' identified by 'ThePassword';
- grant all on db_example.* to 'springuser'@'%';
- install erlang
- install rabbitMQ
- enable rabbitMQ plugin rabbitmq_stomp
- optional: enable the control panel plugin
- plugins are installed with rabbitmq-plugins in your sbin directory.
- rabbitmq-plugins enable rabbitmq_stomp
- rabbitmq-plugins enable rabbitmq_management
- Download Java 11 or later.
- Download latest release at https://github.com/AdamBremholm/TheRoom/releases/latest
- Start up rabbitmq and mysql services
- Check that port 8080 is open
- run the jar file with:
java -jar theroomapp-0.0.1-SNAPSHOT
-
Go to http://localhost:8080
-
For full api-documentation, go to http://ocalhost:8080/swagger-ui.html
To create your first user with admin privileges, run this command in the mysql session after registring your first user:
UPDATE `theroom`.`user` SET `roles` = 'ADMIN' WHERE (`id` = '1');
This user can later promote normal users through the ui.