- Java 17+
- Docker
- Gradle (You can use Gradle Wrapper)
- Clone the repository:
git clone <repository-URL> cd <repository-name>
- add your deepl api-key to translate/src/main/resources/application.yml in key section
- Inside /gen with git bash write command
./build.sh(sometimes need before usedchmod +x build.sh)
-
Clone the repository:
git clone <repository-URL> cd <repository-name>
-
Build the project using Gradle:
./gradlew build
-
If you want to build the Docker image, use the following command:
docker build -t commmit-craft . -
Run the Docker container:
docker run -d -p 8090:8090 --name commmit-craft commmit-craft
-
The application will be available at
http://localhost:8090.
The translate module integrates with DeepL for machine translation. To use this feature, you need to provide your DeepL API key.
-
Go to the
translatemodule’sapplication.properties(orapplication.yml) file. -
Add your DeepL API key in the configuration:
deepl.api.key=YOUR_DEEPL_API_KEY -
Replace
YOUR_DEEPL_API_KEYwith your actual API key obtained from DeepL.
You can specify different profiles for the application. For example, to use the dev profile:
-
In
application.yml:spring.profiles.active=dev -
Alternatively, you can pass the active profile as a Docker environment variable:
docker run -d -p 8090:8090 -e SPRING_PROFILES_ACTIVE=kam --name commmit-craft commmit-craft
The Docker image uses OpenJDK 17 and builds the application inside a Docker container. You can configure the profile or other settings when running the Docker container.
By default, the application will run on port 8090. To change this, modify the application.properties:
server.port=8090To run the tests for the application, use Gradle:
./gradlew testhttp://localhost:8090/swagger-ui/index.html
This project is licensed under the MIT License.
