Integration of Pipedrive with Bling
- Insert credentials in AWS SSM Parameter store
- Create a Jenkins CI/CD to build the application
- Add SonarScanner to detect all code smells inside of code
- Create a pagination in GET route
This project consists to pass Pipedrive deals to Bling
To install Mongo, run this docker commands:
If you don't have mongo docker image in your machine, run:
docker run --name mongodb -p 28017:27017 -e MONGO_INITDB_ROOT_USERNAME=your_user -e MONGO_INITDB_ROOT_PASSWORD=your_password mongo
Put the connection in your .env (Example bellow):
mongodb://your_user:your_password@localhost:28017/
To run the project, use this environment variables:
PIPEDRIVE_API_TOKEN=your_pipedrive_token
PIPEDRIVE_BASE_API_URL=your_url/api/v1/deals/?api_token=
PIPEDRIVE_BASE_API_URL2=your_url/api/v1/deals/
PIPEDRIVE_BASE_API_PRODUCTS_URL=your_url/api/v1/products/
BLING_API_TOKEN=your_bling_token
BLING_BASE_API_URL=https://bling.com.br/Api/v2/pedido/json/?apikey=
MONGO_CONNECTION_STRING=mongodb://your_user:your_password@localhost:28017/
MONGO_COLLECTION_NAME=deals
MONGO_DATABASE_NAME=linkapi
PORT=3001
To run the project, follow the steps bellow:
git clone https://github.com/wolff453/integrate-pipedrive-bling.git
cd integrate-pipedrive-bling
GET route to list all deals
http:localhost:3000/deals
Post route to insert deals in Bling
http:localhost:3000/insert/deals
This is the message when POST occurs ok: