Let's Build a GraphQL Server in Go, Part 2: Dataloaders

20 January 2020 
— by Filip
#go#golang#graphql#sqlc#gqlgen#postgresql#dataloaders#dataloaden

This is the second in a series of posts covering the process of building a simple yet full featured GraphQL server in Go. In this post we will focus on implementing dataloaders to improve the performance of the server.

Read more →

Let's Build a GraphQL Server in Go, Part 1

04 January 2020 
— by Filip
#go#golang#graphql#sqlc#gqlgen#postgresql

This is the first in a series of posts covering the process of building a simple yet full featured GraphQL server in Go. In this post we will use gqlgen and sqlc to build a working GraphQL server backed by a PostgreSQL database, and capable of performing basic CRUD operations.

Read more →

Random Ticker in Go

11 December 2019 
— by Filip
#go#golang#time

I'm writing something like a scraper, and I want this program to be able to send requests every x seconds, at a slightly different interval every time. How to accomplish this idiomatically in Go?

Read more →

How to build a multilingual website in Next.js

03 September 2019 
— by Filip
#next.js#i18n#typescript

It used to be challenging to build multilingual websites in Next.js, but things have greatly improved with introduction of Next 9. In this blog post I'm sharing my ideas on how to implement multi-language support (with locale subpaths, etc.) in Next.js by taking advantage of the framework's newly introduced APIs, while trying to keep things as simple as possible.

Read more →

Next.js, useRouter hook, and testing

02 September 2019 
— by Filip
#next.js#useRouter#testing

A quick tip on how to test Next.js components which utilize the useRouter hook.

Read more →

Google ReCaptcha V3 in React, using TypeScript

18 November 2018 
— by Filip
#react#recaptcha#typescript

Google has recently released a new version of ReCaptcha. It no longer requires any end-user interaction, so it's arguably an improvement over the frequently annoying V2 version. This is a quick tutorial on how to use it in a React app.

Read more →