Creating CloudFront distribution for your Angular app running on the S3 bucket

If you need to deliver your application quickly worldwide, then you can try to use CloudFront.

In this short text, I’m going to show you how easy it is, using the previously deployed Angular app as an example.

Using CloudFront for the websites hosted on the S3 is also a good idea when you need to use the domain which is not registered on Route 53 but on the external provider.

Continue reading Creating CloudFront distribution for your Angular app running on the S3 bucket

How to provide marker clustering on the Leaflet map in the Angular project ๐Ÿ—บ๐Ÿ“Œ

Showing multiple locations on a single map isn’t easy. Both from visual and performance point of view.

But fortunately, there’s a solution to this problem, called marker clustering. Basically, it’s about gathering points together in groups called clusters. Their size depends on current map zoom settings. It helps a lot when it comes to navigation through the map.

In this text, I’m going to show you how you can achieve it in your Angular project using the Leaflet map with Leaflet.markercluster library.

Continue reading How to provide marker clustering on the Leaflet map in the Angular project ๐Ÿ—บ๐Ÿ“Œ

Spaced repetition algorithm implementation in Kotlin

Have you ever thought about creating your own flashcards app?

Well, I have. Although there are plenty of applications like that I developed a simple one for my personal purposes.

Today I’d like to share the implementation of the SM-2 spaced repetition algorithm inย the Kotlin language.

Continue reading Spaced repetition algorithm implementation in Kotlin

Deploy your Angular application into an S3 bucket using Travis CI

In this blog post, I’m going to show you how can you set up the simple CI/CD pipeline for the Angular app.

The goal was to build the GitHub-based Angular project automatically with Travisย CI and deploy it into an S3 bucket, which is used to host a static website.

Let’s begin and learn how you can set it all up yourself.

Continue reading Deploy your Angular application into an S3 bucket using Travis CI

HTTP Basics – 401 Unauthorizeed vs 403 Forbidden – what is the difference?

Have you ever wondered what is the difference between 401 and 403 status codes in HTTP?

In this short text, I’m going to describe what is the main difference between 401 and 403 status codes. I hope it will help you with better API design.

So, let’s begin.

Continue reading HTTP Basics – 401 Unauthorizeed vs 403 Forbidden – what is the difference?

HTTP Basics – 10 HTTP status codes you need to know

Let’s take a look at the HTTP status codes.

In this text I’m going to walk through the 10 most common status codes you may see working with HTTP.

I hope it will help you to understand how the HTTP works or refresh your knowledge and help you design better APIs.

Continue reading HTTP Basics – 10 HTTP status codes you need to know

HTTP basics – PUT vs POST vs PATCH, what is the difference?

While designing our APIs, we often need to make a decision, which method do we’d like to choose to create a new resource on the server.

Will it be POST or PUT?

But hey, wait a minute, there’s still a PATCHย method. Will it be suitable for this purpose?

In this short text, I’m going to go through all these methods and show you what are the best use cases for each of them.

Continue reading HTTP basics – PUT vs POST vs PATCH, what is the difference?

Safe methods in HTTP – what do you need to know about them?

In the previous text, we familiarize ourselves with the concept of the idempotent methods in HTTP.

Let’s talk about safe methods today. What does it mean? Does it have something to do with HTTPS? Well, not really ๐Ÿ˜‰

Let me explain it. Continue reading Safe methods in HTTP – what do you need to know about them?

Idempotent methods in HTTP – what does it mean and why should we bother?

What are idempotent methods in the HTTP? Probably you’ve been asked this question on the interview, or maybe you see it for the first time.

No doubts, it’s a concept which you should know in order to create good and fault-tolerantย  HTTP-based APIs.

In fact, idempotent methods in HTTP are not so complicated as their name may sound. So, let’s begin.

Continue reading Idempotent methods in HTTP – what does it mean and why should we bother?

HTTP basics – what do you need to know about it?

In this text, I’m going to cover all the basic information that every web developer should know about the most basic building block of the modern web, which is HTTP (in my humble opinion).

Due to its continuous popularity, I’m going to focus on HTTP/1.1 mostly.

Continue reading HTTP basics – what do you need to know about it?