Skip to content

Run in IDE

Fi0x edited this page Jul 10, 2024 · 2 revisions

If you want to change something in the code and need to test it in your IDE, this page will guide you through the steps to get the application running.

IntelliJ

Docker database

  1. Install docker on your machine and download the mysql:latest image.
  2. Start the docker engine.
  3. Edit your IntelliJ run-configurations and make sure, that the Docker Image configuration has the correct docker server selected.
  4. Run the Docker Image configuration in IntelliJ

Database update

This only needs to be done once before the first launch of the application. If you reset your database, you need to repeat this step.

  1. Set up a database in IntelliJ, that points to your docker-database
  2. Execute src/main/resources/schema.sql

Start the application

Launch the Main Application run-configuration in IntelliJ. This step requires a running database, so make sure, that yours is running

Add data

At the first launch, the database will be completely empty. If you want to add a default-language, you can execute src/main/resources/data.sql. This will create one default-language, that will be accessible by every user, with the owner set to the user fi0x.

Show the web-ui

With the default configuration, the web-ui is reachable on localhost:2345. If you don't change the config, an admin-user fi0x with the password 123 will be created by the launch of the application. You can use it to log into the web-ui.

Clone this wiki locally