Author: Marcelus Trojahn

Project Ended :(

Hello, Recently I got a new job in a very distant city so I’m moving, finding a house and trying bring my family here. So, I can’t continue the project of ‘Developing a Finance Management Website’ for now. Thanks to everyone who took some time to read it.

Developing a Finance Management Website #5

Enhancing our Entities Let’s talk about Finder. It’s a feature from Ebean that allow us to enhance our entity with methods that will handle querying the database for that specific entity. With Kotlin, we can use it as a companion object to really make our life easier. Let me show you: Now my Script entity will have methods like all(), query(), byId(), update() and many more. Take a look on the someExamples function on the Gist above, pretty easy right? You could even create a ScriptFinder class extending Finder and create your own queries. In my case, I rather just...

Developing a Finance Management Website #4

UML to Entity Hello everyone and welcome back. On today’s post I’m going to continue the development of a finance management website. For those who are just finding me, this is not your usual tutorial. This is a log of sorts of my activities and thinking while I develop this application. You will find novice to advanced information here and it will come slowly because, most of all, I want to log my thinking and practice writing. Our entities On my last post I guide us on creating a Ktor project. If you wanna have a look, it’s here and...

Developing a Finance Management Website #2

Classes and thoughts behind them This was originally posted on Medium. Let’s say I’m the neighborhood nerdy guy that occasionally fixes every neighbor’s computers, routers, printers and maybe even create some artwork on Photoshop or whatever. What do I need to know about my money? I need to know who paid me and what was the service I provided. I need to know where I bought some tool and how much it costed me. I need to keep track of Janet that pays me monthly to help her figuring out her own Excel spreadsheet. So, right now, in a very...

Developing a Finance Management Website

#1 – Intro This was originally posted on Medium. From nothing to something. Hello readers. First of all, let me introduce myself. I’m Marcelus and I’ve been developing small automation solutions to local companies from my city for the past 2 decades. I’m self-taught on everything related to IT and I never stop learning new things. It’s kinda what I do. Ah, even English is self-taught so pardon me already if I make mistakes while I write this. I’m not, by any means, a writer but I always wanted to contribute with my knowledge to other people… And by that...

SpringBoot + Thymeleaf + i18n (Internationalization)

Hello again. This week I had to study how to implement i18n in a Spring Boot + Thymeleaf CRM application I am developing. Spring Boot really makes it easy to setup but while I was searching about it on the Web I found a lot of misinformation and so I decided to make a post about it. As usual, you can find the complete project on Github: Let’s start by the pom.xml:


As you can see, Application.groovy is pretty much the default for any Spring Boot application. I only changed @ComponentScan to lookup the package that...

Spring Boot / Thymeleaf: Fragments via Ajax

This is probably not the best approach and you guys can feel free to correct me in the comments section, but here is a simple tutorial on how I’m getting my fragments loaded via ajax. Same as before, the full project is on my Github: Let’s get to it: MyController.groovy

Very simple controller. Nothing special except for the fact it’s returning Thymeleaf fragmets from /resources/templates/fragments. As you probably noticed, for the sake of this example, each fragment is recieving it’s “content” from the controller. Here’s a fragment: frag1.html

Now the index.html

Each button has it’s event and is calling...

Spring-Boot / Websocket Example

It’s been a while! Project for this post: Recently I stumbled upon the need of using Websockets. I confess I know little about the subject and I hope this little tutorial can help you to get started. I’m making this post just because I tried to help here on StackOverflow and I thought I should just post it here as well. pom.xml

Application.class (nothing special here)



This is the main thing. For this example I added a scheduled method that will periodically broadcast a message to all clients and another method that will just...

Integrating ZK Framework on a Spring Boot application

The complete project can be found here: As you already know if you read my previous posts, I kinda decided to shift my focus to Groovy and I’m learning as I go. Feel free to correct me any time on the comments if you feel I’m doing something wrong or not optimal. In this post I’ll show how to integrate the ZK Framework on a Spring-Boot project just to output a “Hello World” message coming from an autowired bean just so we can check if everything is correctly wired. As usual, let’s start with the build.gradle file:


%d bloggers like this: