JSON Web Token Authentication and Authorization in Golang
In this article, you will learn how to implement authentication and role-based authorization in Golang using JSON Web Tokens (JWT). Users will be able to sign up for an account,…
Continue readingCRUD Operations on PostgreSQL with a Golang REST API
In this article, you will learn how to create a CRUD REST API in Golang using Fiber as the web framework and PostgreSQL as the database. By the end of…
Continue readingPerform CRUD Operations with the net/http Go Standard Library
With the release of Go 1.22, the net/http package now provides all you need for advanced routing in Golang when building Web APIs. However, understanding how to utilize the net/http…
Continue readingBuild a Simple API in Golang using Fiber and SQLite
Have you been wanting to build a simple API in Golang, but don’t know where to start? Look no further than this tutorial, where I’ll guide you through the process…
Continue readingGolang CRUD API Example with GORM and MySQL
In this tutorial, you’ll learn how to build a Golang CRUD API example using the Fiber framework and GORM to interact with a MySQL database. Typically, I tend to use…
Continue readingHow to Properly Refresh JWTs for Authentication in Golang
In this comprehensive guide, you’ll learn how to properly refresh JSON Web Tokens (JWTs) using the RS256 algorithm and Redis for session storage. The integration of Redis will give us…
Continue readingGolang, GORM, & Fiber: JWT Authentication
In this comprehensive guide, you’ll learn how to implement JWT (JSON Web Token) authentication in a Golang application using GORM and the Fiber web framework. The REST API will be…
Continue readingCreate CRUD API in Golang using Fiber and GORM
In this article, you’ll learn how to build a CRUD API in Golang using the Fiber web framework and GORM. The REST API will run on a Fiber HTTP server…
Continue readingHow To Upload Single and Multiple Files in Golang
This article will teach you how to upload single and multiple files on a Golang web server. The tutorial focuses on image upload, but the concepts can be extended and…
Continue readingHow to Implement (2FA) Two-factor Authentication in Golang
This article will teach you how to secure a Golang API by implementing two-factor authentication (2FA) using TOTP codes generated by an authenticator app like Google Authenticator or Authy. There…
Continue readingReact Query and Axios: User Registration and Email Verification
This article will give you a comprehensive overview of JSON Web Token authentication with React Query. You will learn how to validate forms with React Hook Form, make queries and…
Continue readingGolang CRUD RESTful API with SQLC and PostgreSQL
This article will teach you how to build a CRUD RESTful API in Golang that runs on a Gonic Gonic HTTP server and uses a PostgreSQL database. You will also…
Continue reading