Year: 2022

VS Code – Setting it up as your Java Spring Boot Development Environment
| |

VS Code – Setting it up as your Java Spring Boot Development Environment

VS Code is an awesome IDE from Microsoft, recognized as one of the best dev tools by developers’ communities worldwide. Spring Boot on the other hand is also a flag-ship framework for Java, that has been widely acknowledged by all developers as a heavy-duty tool for Java development projects. In this post, we will take the steps to see how we can set up our Spring Boot development environment, based on VS Code.

SYNOLOGY NAS with Apache Server behind an NGINX Proxy – Load the remoteip_module
| | |

SYNOLOGY NAS with Apache Server behind an NGINX Proxy – Load the remoteip_module

Very often, a WordPress site/blog also uses some plug-ins to get some info for those accessing the blog. Such a well-known yet free tool is the WPStatistics plugin. The plugin offers a plethora of statistical data and the visitor statistics is one of them. This means that you can get info, in a table format, about the number of Visitors coming from each Search Engine, the Visitor’s Country Recognition, the Visitor’s City Recognition, the Visitor’s IP, etc.
You might encounter an issue with the visitors’ IPs: all are the same and all look like coming from your internal network, and more precisely, from the NGINX proxy host! Here you can see how you can solve this issue by manually adding/loading the remoteip_module in an Apache Server which is behind an NGINX Proxy in a Synology NAS.

JWT and Passport JWT Strategy for your NestJS REST API Project
| |

JWT and Passport JWT Strategy for your NestJS REST API Project

NestJS offers us the solo @nestjs/jwt module that allows us to integrate JWT in our project.
The Passport package is a massively used NodeJS library, whose “sole purpose is to authenticate requests, which it does through an extensible set of plugins known as strategies.
Here is a detailed post of how you can implement them in your project.

NestJS: Use a solo @injectable class as a singleton Provider
| |

NestJS: Use a solo @injectable class as a singleton Provider

NestJS Modules are Singletons by default. Their Providers are also singletons when they are provided from within the same module. However, there are cases where we want to use just a single solo class as provider to a couple or more modules. In such cases we can use the solo class as singleton or not. Let’s see how we can do that.