In this tutorial, we will learn how to create a simple trivia REST API from scratch, using Go and Docker. At the end of the tutorial, we will have a little Go Fiber app connected to a Postgres database.
📎 Text tutorials
- divrhino.com - https://divrhino.com/articles/rest-api-docker-go-fiber-from-scratch
- dev.to - https://dev.to/divrhino/build-a-rest-api-from-scratch-with-go-and-docker-3o54
- Code repo - https://github.com/divrhino/divrhino-trivia
🦏 Other great tutorials
- Introduction to interactive Git Rebase -
https://youtu.be/9QsFj4_1UAw
- Create a dad joke CLI app -
https://youtu.be/-tO7zSv80UY
⌛ Timestamps
00:00 - Introduction
00:11 - Prerequisites
00:26 - Dockerfile and docker-compose.yml
03:33 - Installing and managing dependencies
08:28 - Adding a Postgres service
16:11 - Routes and endpoints