My implementation of the project from YT: Tech with Tim's Go API Tutorial
- Replaced the in-memory array of books with a MySQL backend.
- Builds and deploys with a database using Docker Compose.
# Initialize the database first:
docker compose up db -d
mysql --user=root -ppassword --host=127.0.0.1 --port=3306 < initialize-database.sql
docker compose down
# Build and start the DB and API together:
docker compose up --build
The API will be available at http://localhost:8080/