gin-api

module
v0.0.0-...-2d5f685 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2022 License: Apache-2.0

README

HTTP Gin REST API

For this project, I focused on learning as much as I could about the Gin Web Framework.

Go standard library definitely has all the tools necessary for the creation of a complete HTTP API. I believe, though, that Go has many third party libraries that can facilitate and speed up this process. Gin seemed like a good one to start with.

Project specifications:
Usage
  • Docker must be installed along with the compose-plugin.

  • Start the containers with:

    docker compose -f ./deployments/compose.yaml up --build
    
  • The API will be available on localhost:3001. Test it with:

    curl localhost:3001/ping
    
Next steps
  • Add logging to the API.
  • Create a NoSQL service with a named volume connected to it.
  • Connect the API to the NoSQL service.
  • Create new routes.

Directories

Path Synopsis
internal
pkg
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL