/learning-go-db-restful

Here I tried to learn accessing databases and making RESTful APIs, using Go

Primary LanguageGo

database access + RESTful API tutorials

How to run

This project requires:

  • podman
  • podman-compose
  • go >=1.21.3
podman compose up --build -d
go run .

If you're running the project for the first time, you need to populate the MySQL database.

podman exec -it mariadb bash

# In the mariadb container
mariadb -u admin -p
use recordings;
source /root/create-tables.sql
quit
exit