https://github.com/udistrital/tesoreria_mid
:heavy_check_mark: Check: Api MID tesoreria
https://github.com/udistrital/tesoreria_mid
financera kronos
Last synced: 4 months ago
JSON representation
:heavy_check_mark: Check: Api MID tesoreria
- Host: GitHub
- URL: https://github.com/udistrital/tesoreria_mid
- Owner: udistrital
- Created: 2021-02-17T23:00:07.000Z (over 5 years ago)
- Default Branch: develop
- Last Pushed: 2022-07-17T03:24:13.000Z (almost 4 years ago)
- Last Synced: 2024-06-21T11:49:52.212Z (almost 2 years ago)
- Topics: financera, kronos
- Language: Go
- Homepage:
- Size: 114 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tesoreria_mid
Api intermediaria entre el cliente de tesoreria y las apis necesarias para la gestión de la información para estos mismos.
Api mid para el subsistema de tesoreria que hace parte del sistema KRONOS
## Especificaciones Técnicas
### Tecnologías Implementadas y Versiones
- [Golang](https://github.com/udistrital/introduccion_oas/blob/master/instalacion_de_herramientas/golang.md)
- [BeeGo](https://github.com/udistrital/introduccion_oas/blob/master/instalacion_de_herramientas/beego.md)
- [Docker](https://docs.docker.com/engine/install/ubuntu/)
- [Docker Compose](https://docs.docker.com/compose/)
### Variables de Entorno
```shell
# Ejemplo que se debe actualizar acorde al proyecto
API_NAME = [Nombre del API]
TESORERIA_MID_HTTP_PORT = [Puerto de ejecución del API]
TESORERIA_MID_RUN_MODE = [Modo de ejecución]
AVANCES_CRUD_URL = [URL del despliegue del api de avances_crud]
SOLICITUDES_CRUD_URL = [URL del despliegue del api de solicitudes_crud]
TERCEROS_CRUD_URL = [URL del despliegue del api de terceros_crud]
GIROS_CRUD_URL = [URL del despliegue del api de giros_crud]
```
**NOTA:** Las variables se pueden ver en el fichero conf/app.conf y .env
### Ejecución del Proyecto
```shell
#1. Obtener el repositorio con Go
go get github.com/udistrital/tesoreria_mid
#2. Moverse a la carpeta del repositorio
cd $GOPATH/src/github.com/udistrital/tesoreria_mid
# 3. Moverse a la rama **develop**
git pull origin develop && git checkout develop
# 4. alimentar todas las variables de entorno que utiliza el proyecto.
TESORERIA_MID_HTTP_PORT=8080 AVANCES_CRUD_URL=https://127.0.0.1/v1 TESORERIA_MID_RUN_MODE=dev bee run
```
### Ejecución Dockerfile
```shell
# 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
```shell
#1. Clonar el repositorio
git clone -b develop https://github.com/udistrital/tesoreria_mid
#2. Moverse a la carpeta del repositorio
cd solicitudes_crud
#3. Crear un fichero con el nombre **custom.env**
touch .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
```
### Apis Requeridas
1. [avances_crud](https://github.com/udistrital/avances_crud)
### Ejecución Pruebas
Pruebas unitarias
```shell
# Not Data
```
## Estado CI
| Develop | Release 1.0.0 | Master |
| -- | -- | -- |
| [](https://hubci.portaloas.udistrital.edu.co/udistrital/tesoreria_mid) | [](https://hubci.portaloas.udistrital.edu.co/udistrital/tesoreria_mid) | [](https://hubci.portaloas.udistrital.edu.co/udistrital/tesoreria_mid) |
## Licencia
This file is part of tesoreria_mid
tesoreria_mid 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.
tesoreria_mid 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 tesoreria_mid. If not, see https://www.gnu.org/licenses/.