Go

How to Build an API Server in Go - Part 4: Access Control

Learn how to protect API endpoints with access and refresh tokens using the third-party jwt-go library. ...

January 31, 2021 · 16 min · 3313 words · Bartlomiej Mika
Go

How to Build an API Server in Go - Part 3: Postgres Database

The purpose of this article is to provide instructions on how to setup postgres database with our application. ...

January 30, 2021 · 18 min · 3833 words · Bartlomiej Mika
Go

How to Build an API Server in Go - Part 2: Simple Database

The purpose of this post is to learn how our basic API server can read the body of a request. In addition, we will learn how to use an easy-to-use simple database for beginners called scribble. ...

January 29, 2021 · 21 min · 4448 words · Bartlomiej Mika
Go

How to Build an API Server in Go - Part 1: Basic Server

The purpose of this post is to provide instructions on how to setup a simple RESTful API server, in Golang, using only the net/http package and not any other third-party web framework. You will learn how to create REST endpoints within your project that can handle POST, GET, PUT and DELETE HTTP requests. This is the first post in a multi-post series. ...

January 25, 2021 · 12 min · 2522 words · Bartlomiej Mika