- Make sure you have the JDK 11 installed on your machine and the Maven as well.
- Clone the repository:
git clone https://github.com/reness0/convert-json-to-freemarker
- Go into the folder:
cd convert-json-to-freemarker
- Run these two maven commands:
mvn clean package
This will build the dependencies
mvn exec:java
This will run the program
- Verify the output of the program, access this HTML page:
json-to-freemarker/src/main/kotlin/templates/output.html
If you wanna change the JSON, just go inside the class:
src/main/kotlin/freemarker/GenerateTemplateFromObject.kt
and change the variablejson