Skip to content

codeherk/go-api-example

Repository files navigation

Golang API Example

A golang containerized API example

Golang API Example Google Slide Presentation (work in progress)

Table of Contents

Documentation

Technologies used:

  • Golang: API via gin
  • MySQL: Database that holds the Task data
  • Docker: containerize the API and Database for local development

Architecture Data Model For local development, we use Docker to containerize the API and MySQL database Containerization for Local Development

Prerequisites

  • Install Go
    • via Chocolately for Windows
    • via Homebrew for Mac
  • Install Docker
    • via Chocolately for Windows
    • via Homebrew for Mac
  • (Optional) Install Docker VSCode Extension. Helps with Syntax highlighting and autocompletion.

Getting Started

  • Clone repo
  • Run make start at the top level directory to build and run the API and MySQL docker containers
  • Other make targets:
    • make stop: stops and removes the docker containers

Contributing

Some of the plans I have for this repo are documented here in GitHub Projects.

We appreciate feedback and contribution to this repo! Feel free to create a PR with your changes. I plan to add additional things like a PR template, etc. to make the contribution process more formal.

About

A containerized Golang API example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published