goAPIrest

command module
v0.0.0-...-9298de9 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

README

goAPIrest

Se basa en los siguientes artículos:

  1. Golang CRUD
  2. Docker y Docker-compose
  3. Kubernetes
  4. RabbitMQ
  5. Sending Email with golang
  6. Golang environment variables
  7. Sending html email in golang
  8. Golang stripe
  9. Docker golang mysql
  10. zerolog

Pre-requisitos:

Instalar:

  1. Docker
  2. docker-compose

Instrucciones:

  1. Agregar en /etc/hosts 127.0.0.1 goapirest.local.ve

  2. Construir las images docker. docker-compose build Ó make build

  3. Levantar los contenedores. docker-compose up

  4. Listar tareas. docker-compose ps

make ps 5. Ver logs docker-compose logs -f o make logs

  1. Pruebas unitarias docker-compose -f docker-compose.test.yaml up --build --abort-on-container-exit

o make unitest

  1. Limpiar contenedores docker system prune -a o make purge

  2. Url de Bienvenida:

http://goapirest.local.ve:8080/

  1. Pruebas del Endpoint Revisar el artículo Golang CRUD
  2. Pruebas unitarias usando docker

TODO:

  1. Ajustar variables de entorno según sea local, producción, develop, testing.
  2. Arreglar las variables para que despliegue pruebas unitarias.

Documentation

Overview

main package for Go application

Directories

Path Synopsis
api
File: server.go
File: server.go

Jump to

Keyboard shortcuts

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