Tutorial Overview

Welcome to this hands-on tutorial where you'll learn how to build a production-ready application using the Codoworks Go boilerplate. This tutorial will guide you through the process of creating a headless phonebook service. By the end of this tutorial, you'll have a solid understanding of how to set up a Go project using the Codoworks boilerplate, create a database with migrations, define models, and build a RESTful API.

What you'll learn

In this tutorial, you'll learn:

  • How to set up a new project using the Codoworks Go boilerplate
  • How to create a database using migrations
  • How to define models and interact with the Database
  • How to store and retrieve data using tasks and RESTful API endpoints
  • How to build and run your service
  • How to test your API endpoints and much more!

Prerequisites

Before you begin, make sure you have the following installed and configured:

  1. GoLang: Version 1.21 or higher

    • You can check your version by running go version
    • Download from go.dev
  2. Development Environment:

    • VS Code (recommended) or your preferred text editor
    • Terminal (zsh, bash, or shell)
    • Git for version control
  3. Basic Understanding:

    • Familiarity with Go programming language basics
    • Basic understanding of REST APIs
    • Comfort with using the command line

Who is this for

This tutorial is for developers who are familiar with Go and want to build API services rapidly. The tutorial is designed for both beginners and experienced developers who want to learn how to use the Codoworks Go boilerplate effectively. Or simply use this a reference for building production-ready applications with Go.

Source code

You can find the source code for this tutorial in the go-boilerplate-tutorial repository.

Was this page helpful?

Consider supporting my work if you find it useful

Buy me a coffee