Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

delta/codecharacter-server-2022

Repository files navigation

CodeCharacter Server 2022

Prerequisites

  1. JDK 17 (Ubuntu: install the openjdk-17-jdk package)
  2. Intellij IDEA Ultimate
  3. Docker

Setup

  1. Clone the repo and open in IntelliJ Ultimate.
  2. Press Ctrl+Alt+Shift+S and make sure the JDK version is 17.
  3. Press Ctrl+Alt+S and go to Build, Execution, Deployment -> Docker and make sure docker is configured correctly/
  4. Copy server/src/main/resources/application.example.yml to server/src/main/resources/application.yml. If you want to use docker instead, copy the server/src/main/resources/application.docker.example.yml to server/src/main/resources/application.yml.
  5. The run configurations will be available in the top bar: Run Configurations

Run Configurations

  1. DB & RabbitMQ: For starting the MongoDB and RabbitMQ containers.
  2. Dev: To start the docker development server.
  3. Production: To start the docker production server.
  4. Tests: To run the tests.
  5. Format: To format the project.
  6. Assemble: To assemble the project binary.
  7. Server: To start the server. (Might require DB & RabbitMQ to be running)