See security/snyk vulnerabilities
ktm-api uses Swagger for documenting the API
Swagger Configuration Parameters
SWAGGER_JSON_URL: http://localhost:8080/swagger.json
SWAGGER_API_URL: default - http://localhost:8080/swagger-ui.html
ktm-api configuration files are hosted on https://github.com/pradipforever/config-repo and can
be accessed via config-server http://localhost:8888/ktm-api/default
Sensitive password to access config-server should be passed as an environmental variable for all applications.
Instruction
With IntelliJ IDEA up and running, click Import Project on the Welcome Screen, or File | Open on
the main menu.
In the pop-up dialog make sure to select Gradle's build.gradle file under the complete folder.
IntelliJ IDEA will create a project with all the code from the gradle ready to run.
To run the app in localhost mode:
Change the bootstrap.yml
property to
uri: ${SPRING_CONFIG_URI:http://localhost:8888}
Change the ktm-api-dev.yml
property to
url: jdbc:mysql://localhost:33061/ktm?useSSL=false
Go To:
KtmApplication.java
file, and right click on the file.
Select the Run KtmApplication
option, once the app is, it can be accessed on:
Localhost URL:
http://localhost:8080
To run the app in the docker
Change the bootstrap.yml
property to
uri: ${SPRING_CONFIG_URI:<http://docker.for.mac.localhost:8888>}
Change the ktm-api-dev.yml
property to
url: jdbc:mysql://docker.for.mac.localhost:33061/ktm?useSSL=false
Make sure the docker is installed in the host. In terminal, Run the below command:docker-compose up
Localhost URL: It can be accessed on:
http://localhost:8080