Skip to content

udistrital/avances_crud

Repository files navigation

avances_crud

El API avances_crud, proporciona interfaces para la manipulación(CRUD) de los datos almacenados en una base de datos relacional PostgreSQl (registra avances, tipos de avances, solicitudes de avances, etc). Esta API representa la capa de datos del subsistema de avances, el cual, a su vez, hace parte de el sistema de gestión financiero KRONOS.

Especificaciones Técnicas

Tecnologías Implementadas y Versiones

Variables de Entorno

AVANCES_CRUD_HTTP_PORT=[Puerto asignado para la ejecución del API]
AVANCES_CRUD_RUN_MODE=[Modo de ejecución del api]
AVANCES_CRUD_PGUSER=[Usuario de la base de datos]
AVANCES_CRUD_PGPASS=[Clave del usuario para la conexión a la base de datos]
AVANCES_CRUD_PGHOST=[Host de conexión a la base de datos]
AVANCES_CRUD_PGPORT=[Puerto de base de datos]
AVANCES_CRUD_PGDB=[Nombre de la base de datos]
AVANCES_CRUD_PGSCHEMA=[Esquema de la base de datos]
# Ejemplo
AVANCES_CRUD_HTTP_PORT=8080
AVANCES_CRUD_RUN_MODE=dev
AVANCES_CRUD_PGUSER=postgres
AVANCES_CRUD_PGPASS=***
AVANCES_CRUD_PGHOST=127.0.0.1
AVANCES_CRUD_PGPORT=5432
AVANCES_CRUD_PGDB=avances_db
AVANCES_CRUD_PGSCHEMA=avances

NOTA: Las variables se pueden ver en el fichero conf/app.conf y están identificadas con AVANCES_CRUD_...

Ejecución del Proyecto

#1. Obtener el repositorio con Go
go get github.com/udistrital/avances_crud

#2. Moverse a la carpeta del repositorio
cd $GOPATH/src/github.com/udistrital/avances_crud

# 3. Moverse a la rama **develop**
git pull origin develop && git checkout develop

# 4. alimentar todas las variables de entorno que utiliza el proyecto.
AVANCES_CRUD_HTTP_PORT=8080 AVANCES_CRUD_RUN_MODE=dev AVANCES_CRUD_PGUSER=postgres AVANCES_CRUD_PGPASS=**** AVANCES_CRUD_PGHOST=127.0.0.1 AVANCES_CRUD_PGPORT=5432 ...

# 5. Ejecutar bee run
bee run

Ejecución Dockerfile

# Implementado para despliegue del Sistema de integración continua CI.
# docker build --tag=avances_crud . --no-cache
# docker run -p 80:80 avances_crud

Ejecución docker-compose

#1. Clonar el repositorio
git clone -b develop https://github.com/udistrital/avances_crud

#2. Moverse a la carpeta del repositorio
cd avances_crud

#3. Crear un fichero con el nombre **custom.env**
# En windows ejecutar:* ` ni custom.env`
touch custom.env

#4. Crear la network **back_end** para los contenedores
docker network create back_end

#5. Ejecutar el compose del contenedor
docker-compose up --build

#6. Comprobar que los contenedores estén en ejecución
docker ps

Ejecución Pruebas

Pruebas unitarias

# Not Data

Modelo de datos

Modelo de datos relacional avances_crud

Estado CI

Develop Relese 0.0.1 Master
Build Status Build Status Build Status

Licencia

This file is part of avances_crud

avances_crud is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

avances_crud is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with avances_crud. If not, see https://www.gnu.org/licenses/.

About

⛔ Deprecate: API CRUD Para la gestión de avances

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages