REST API with Go, Chi, MySQL and sqlx

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
  1. blog-code-samples

    Sample projects and code from my blog posts

    I will start by copying the content of https://github.com/kashifsoofi/blog-code-samples/tree/main/movies-api-with-go-chi-and-memory-store, placing it in a new folder movies-api-with-go-chi-and-mysql and updating module name in go.mod to match the new folder and updating in source files where its used. This will usually be the root of your git repo and will not be as elaborate as this.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. migrate

    Database migrations. CLI and Golang library.

    Before we can start using MySQL we need to create a table to store our data. I will be using excellent migrate database migrations tool, it can also be imported as a libraray.

  4. sqlx

    general purpose extensions to golang's database/sql

    I will be using sqlx to execute queries and map columns to struct fields and vice versa, sqlx is a library which provides a set of extensions on go's standard database/sql library.

  5. kelseyhightower/envconfig

    Golang library for managing configuration data from environment variables

    envconfig

  6. chi

    lightweight, idiomatic and composable router for building Go HTTP services

    chi

  7. docker

    Discontinued Docker - the open-source application container engine (by microsoft)

    This is a continuation of an earlier post REST API with Go, Chi and InMemory Store. In this tutorial I will extend the service to store data in a MySQL database. I will use Docker to run MySQL and run database migrations.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Uploading and Serving Images from MongoDB in Golang

    3 projects | dev.to | 4 Jan 2024
  • Build a Golang Todo App Backend: A Step-by-Step Guide

    3 projects | dev.to | 29 Dec 2023
  • newbie here looking for a framework

    4 projects | /r/golang | 3 Oct 2023
  • Building RESTful API with Hexagonal Architecture in Go

    21 projects | dev.to | 27 Sep 2023
  • Authentication system using Golang and Sveltekit - Initialization and setup

    7 projects | dev.to | 2 Jun 2023

Did you know that Go is
the 4th most popular programming language
based on number of references?