Tuesday, September 17, 2024

Release and publish Maven artifacts on Github (2024)

In 2024 the mechanism of publishing Maven artifacts has changed, in this short article we'll discuss how we can release and publish a new Maven package from GitHub.

Thursday, September 12, 2024

Upload files to Firebase Hosting with Java

Sometimes you might need a Java based solution to upload files to Firebase Hosting to publish your recently generated static files. 

For instance, I use Firebase Hosting to store JSON data files generated by AWS Lambda functions (written in Java+Spring Cloud Function), and these files will be loaded into a mobile app.

This is when "firebase-hosting-api-java" open source library comes into the picture.

Wednesday, September 11, 2024

Spring Boot Testing tips: Check integration test existence for REST Controllers

Code quality and unit/integration testing is extremely important in software development, especially when a software gets larger and larger and it can be challenging to maintain which service has tests.

In this short article I'd like to present a way how you can validate that all of your application's endpoint has an integration test, but of course the method can be applied to other layers(e.g.: service) of the system as well.

Tuesday, September 10, 2024

Spring Boot request and response logging with sensitive data masking

 Enterprise Java (or any other) applications ofter requires logging of request and response bodies to investigate any upcoming issue. Logging these payloads are easy-peasy, but what should we do with any sensitive data inside those payloads? In this short article I'd like to share a solution with Spring Boot that is used in most large enterprise companies to log their incoming and outgoing messages in a secure and regulated way.

Wednesday, September 4, 2024

PostgreSQL instance on Windows with Docker Desktop

Running a database instance on your development environment is crucial, when you need a stable RDBMS for software development. Now we'll discuss how to install and configure a PostgreSQL instance with Docker Desktop on Windows.

Friday, January 1, 2021

How I automated my tasks with AWS

In this article I want to describe how Amazon Web Services helped me to automate my tasks.

I have an Android application which provides parking information for the users. A scheduled Android job checks for updates every 4 hours. Updates can be found in a static Json file hosted on Firebase Hosting. This Json file has a specific structure, but it differs from the source, where all data comes from. There is another file called config.json which contains the version number of the data. Although it's a cost-effective way to store minimum amount of data, but it was a pain in the ass to maintain it.

Tuesday, December 29, 2020

Create deployment to Firebase Hosting with Java

In this article I'd like to introduce "firebase-hosting-api-java", which is an API library for Firebase Hosting REST API written in Java 8. It supports all available V1Beta1 services, such as query the releases, delete deployment versions and so on. From version 0.4, theres a common service called createDeploy(), which is a combination of all deployment related function, and this is the recommended function for deployment.

Configure and use VSCode for Java web development

Embarking on Java web development often starts with choosing the right tools that streamline the coding process while enhancing productivity...