https://github.com/delta/codecharacter-server
The server for CodeCharacter
https://github.com/delta/codecharacter-server
Last synced: 5 months ago
JSON representation
The server for CodeCharacter
- Host: GitHub
- URL: https://github.com/delta/codecharacter-server
- Owner: delta
- License: mit
- Created: 2023-12-14T21:16:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-13T05:55:21.000Z (over 1 year ago)
- Last Synced: 2025-02-13T06:34:29.572Z (over 1 year ago)
- Language: Kotlin
- Homepage:
- Size: 1.79 MB
- Stars: 0
- Watchers: 24
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CodeCharacter Server 2024
### Prerequisites
1. JDK 17 (Ubuntu: install the `openjdk-17-jdk` package)
2. [Intellij IDEA Ultimate](https://www.jetbrains.com/idea/download/#section=linux)
3. Docker
### Setup
1. Clone the repo and open in IntelliJ Ultimate.
2. From the project root directory,run ```./gradlew installGitHooks``` to install git-hooks
3. Press `Ctrl+Alt+Shift+S` and make sure the JDK version is 17.
4. Press `Ctrl+Alt+S` and go to `Build, Execution, Deployment -> Docker` and make sure docker is configured correctly/
5. 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`.
6. Run `git submodule update --init`
7. Run `cp server/src/main/resources/dcConstants.example.json server/src/main/resources/dcConstants.json`
8. The run configurations will be available in the top bar:

### 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)