An open API service indexing awesome lists of open source software.

https://github.com/robsonkades/crm-integration-nodejs

📦 ⚡ 🚀 Challenge LinkApi Integration Pipedrive with Bling
https://github.com/robsonkades/crm-integration-nodejs

api-gateway aws integration nodejs serverless

Last synced: 3 months ago
JSON representation

📦 ⚡ 🚀 Challenge LinkApi Integration Pipedrive with Bling

Awesome Lists containing this project

README

        

# Challenge linkapi

Serviço serverless de integração pipedrive com bling.

**Construido utilizando**

Esse exemplo foi construido com base no [projeto](https://github.com/inovedev/serverless-architecture-boilerplate)

- API Gateway
- AWS Lambda
- DynamoDB
- X-Ray
- Mongoose
- Express
- Yup
- Jest
- Serverless.js
- Typescript
- Serverless Offline
- Debug
- Husky
- Commitlint
- S.O.L.I.D

## Installation

- Node.js v12+ [install](https://nodejs.org/en/download/)
- AWS CLI [install](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html)
- Serverless.js [install](https://www.serverless.com/framework/docs/getting-started/)

## Configuration
- Criar `access-key-id` and `secret-access-key` na aws [link](https://aws.amazon.com/blogs/security/wheres-my-secret-access-key/)

- Configurar credentials no serverless.js [link](https://www.serverless.com/framework/docs/providers/aws/cli-reference/config-credentials/)

### Environment
- `PIPEDRIVE_TOKEN`: Token de aplicação do pipedrive
- `BLING_TOKEN`: Token de aplicação Bling
- `DEBUG`: Logs da aplicação
- `MONGO_URL`: Url de conexão com o mongoDB

## Architecture

![architecture](./assets/architecture.png)

## Execution

Download das dependências

```bash
yarn install
```

Executando localmente

```bash
yarn dev
```

Deploy do serviço na AWS

```bash
yarn deploy
```

## Documentation
Documentação das apis pode ser consultada no swagger em `http://localhost:3000/dev/api-docs`.