API MID de servicios de google.
#general
GOOGLE_MID_HTTP_PORT: [Puerto de ejecución API]
PRODUCCION_ACADEMICA_SERVICE: [Servicio producción académica crud]
GOOGLE_MID_PATH_TEMPLATES: [Indica la ruta de los templates que se usarán para el envío de notificaciones]
#mail environment
GOOGLE_MID_GMAIL_CLIENT_ID: [Client Id de la cuenta que realizará el envío de correos]
GOOGLE_MID_GMAIL_CLIENT_SECRET: [Secreto de la cuenta que realizará el envío de correos]
GOOGLE_MID_GMAIL_ACCESS_TOKEN: [Access token de la cuenta que realizará el envío de correos]
GOOGLE_MID_GMAIL_REFRESH_TOKEN: [Refresh token de la cuenta que realizará el envío de correos]
#drive environment
GOOGLE_MID_DRIVE_CLIENT_EMAIL: [Correo de la cuenta de servicio utilizada para subir archivos a drive]
GOOGLE_MID_DRIVE_PRIVATE_KEY: [Clave privada de la cuenta de servicio utilizada para subir archivos a drive] # Cambiar \n por enter y poner todo entre comillas
GOOGLE_MID_DRIVE_MAIN_FOLDER: [Id de folder principal donde se almacenan los archivos en drive]
NOTA: Las variables se pueden ver en el fichero conf/app.conf
#1. Obtener el repositorio con Go
go get github.com/udistrital/google_mid
#2. Moverse a la carpeta del repositorio
cd $GOPATH/src/github.com/udistrital/google_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.
GOOGLE_MID_HTTP_PORT=8080 GOOGLE_MID_GMAIL_CLIENT_ID=127.0.0.1 GOOGLE_MID_SOME_VARIABLE=some_value bee run
# Implementado para despliegue del Sistema de integración continua CI.
#1. Clonar el repositorio
git clone -b develop https://github.com/udistrital/google_mid
#2. Moverse a la carpeta del repositorio
cd google_mid
#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
Pruebas unitarias
# Not Data
Develop | Release 0.0.1 | Master |
---|---|---|
This file is part of google_mid.
google_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.
google_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 google_mid. If not, see https://www.gnu.org/licenses/.