/go-mysql-crud

This repository contains a complete CRUD (Create, Read, Update, Delete) application implemented in Go. The application interacts with a MySQL database, which is conveniently set up and managed using Docker Compose.

Primary LanguageGoGNU General Public License v3.0GPL-3.0

Go MySQL CRUD

Go Version Docker

Description

This is an example repository demonstrating a basic CRUD in Go using MySQL. MySQL is running in a Docker container using Docker Compose.

Go Gopher MySQL Docker

Prerequisites

  • Go 1.22 or higher
  • Docker
  • Docker Compose (for MySQL)

Installation

  1. Clone the repository:

    git clone https://github.com/duarty/go-mysql-crud.git
  2. Navigate to the project directory:

    cd gomysqlcrud
  3. Run MySQL using Docker Compose:

    docker-compose up -d
  4. Run the application:

    go run main.go

Contributing

Contributions are welcome! For suggestions, improvements, or fixes, please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.