- This is a REST API project that integrates Pipedrive (CRM) and Bling (ERP) using Node.js and the MongoDB database. The API gets the deals from Pipedrive with its status 'won' and make an order request on Bling, registering it in the database.
- You can use Visual Studio Code for the project development. Click here and install it.
- You can track your code changes with Git version control software. Click here and install it.
- You can download the LTS version of the Node.js source code by clicking here and accessing its download page.
- You can sing-up for MongoDB Atlas to use the free cloud-hosted option of its DBaaS by clicking here and creating an account.
- Click on the following link to learn how to get your Pipedrive API token.
- Click on the following link to learn how to get your Bling API key.
- Click on the following link to learn how to use the MongoDB connection URI.
-
Open you project folder with Visual Studio Code and press
CTRL + '
to open the terminal. -
Run the
npm install
command to install the npm package manager. -
After that, run
npm init
to initialize its packages. -
If you prefer, you can also use the yarn package manager running
npm install --global yarn
. -
You can add an
.env
file and load your environment variables using the dotenv module. Runnpm install dotenv
to install it. -
The nodemon is a tool that restarts applications after file changes. Run
npm install --save-dev nodemon
to install it. -
Express is a module to build APIs that supports routing and middleware. Run
npm install --save-dev express
to install it. -
Axios is a promise based HTTP client that helps making requests with Node.js. Run
npm install --save-dev axios
to install it.
It lists all deals from Pipedrive. For more information, access this documentation on Pipedrive Developers.
It only fetches deals with status 'won'. The status is a query parameter that can be supplied in the request to return deals with specific status.
It creates a new deal on Pipedrive with the fields informaton that were supplied. For more information, access this documentation on Pipedrive Developers.
It creates an order request on Bling with the provided fields. For more information, access this documentation on Bling Ajuda.
It creates a new resource in a collection on MongoDB Atlas database, with the provided JSON. For more information, access the MongoDB Documentation.