golang-api

command module
v0.0.0-...-b6fe4e9 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: MIT Imports: 8 Imported by: 0

README

golang-api

Golang API

CRUD in Golang Using Gin Web Framework, Postgres and Redis for Cache.

Subir a Aplicacao com Docker:

Acesse a raiz do repositorio e rode:

  make docker  

Parar a Aplicacao: make dockerdown

Dependencias

Gin-gonic, go-lib/pq(Postgres), go-redis

Requisitos :

Deixar as Porta (8800, 5432, 6379) do seu host local livre, pois serão essas portas que a aplicacao ira utilizar.

Endereços e Rotas

Golang API = http://127.0.0.1:8800/

GET http://127.0.0.1:8800/users

GET http://127.0.0.1:8800/users/:username

POST http://127.0.0.1:8800/users

PUT http://127.0.0.1:8800/users/:username

DELETE http://127.0.0.1:8800/users/:username

Para Utilizar Docker é necessario ter instalado:

  Docker: https://www.docker.com/

  Docker-Compose: https://docs.docker.com/compose/
  

Referencias

https://github.com/gin-gonic/gin

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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