Coder Social home page Coder Social logo

calomentor's Introduction

CALOMENTOR

Table of Contents

API para la gestión de mentorías de FrontendCafé.

Se usa el framework Serverless con AWS como Provider y DynamoDB como base de datos.

Table of Contents

Links

Getting Started

Se necesita tener en la base del proyecto un archivo config.dev.json con las siguientes variables de entorno.

CALOMENTOR_MAIL
CALOMENTOR_MAIL_CLIENT_ID
CALOMENTOR_MAIL_CLIENT_SECRET
CALOMENTOR_MAIL_REFRESH_TOKEN
CALOMENTOR_MAIL_ACCESS_TOKEN
BASE_URL
BASE_FRONT_URL
BASE_BOT_URL
MENTORISHIP_NOTIFICATIONS_CHANNEL_ID // Por ahora para testeos va a ser la url del canal bot_test
MENTEE_ROLE_ID
JWT_KEY
API_KEY_PHRASE
API_KEY

Para utilizar la API, se debera añadir el siguiente header a las requests cuyo valor debe ser una API KEY

  • X-API-KEY

Previo a ejecutar el proyecto deberemos tener instalando en nuestra computadora el framework Serverless

yarn add -g serverless

Luego de instalar Serverless Framework deberemos loguearnos con las credenciales de AWS

serverless config credentials --provider aws --key {{AWS_KEY}}  --secret {{AWS_SECRET_KEY}}

Instalar dependencias

yarn install

Ejecutar el server local

yarn run start-offline

Proceso al crear una mentoría

Mentorship Flow

Insomnia

Todo el proyecto esta documentado con OpenAPI v3, se puede abrir la documentación desde el programa Insomnia, el archivo con la misma se encuentra en Insomnia.json.

Al iniciar el server con yarn run start-offline en la terminal figura la api key que debe cargarse en el environment Localhost.

Estructura del proyecto

El archivo ./serverless.yml contiene todas las lambda function, cada una de las cuales refiere a una función correspondiente en index.ts.

Cada una de las cuales a su vez refiere a una función dentro de services.

Cada una de estas funciones es exactamente una lambda function en AWS.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.