Building a Simple Microservice

Build a simple microservice using Catalyst Basic I/O Functions and integrate it with Zoho CRM to send automated counter-based email alerts when more than a specific number of leads are created

Prerequisites

Before you begin building the application, you must have the following prerequisites installed on your system:

  1. Node.js and Node Package Manager (NPM)

    The Catalyst CLI is installed through NPM. You must therefore have the NPM and Node.js installed on your system before you install the CLI.

    To check if you already have Node.js and NPM installed, execute the following commands in your terminal which display their installed versions, if present:
     
    $ node -v
    $ npm -v
    If you don't have them installed, you can download the Node.js source code or a pre-built Node installer for your platform from their official website. Since NPM is the package manager of Node.js, installing Node.js using a Node installer also installs NPM automatically.

    Download Node.js for your platform from their official website. Refer to the Node.js help documentation for further information.

    You can also install Node.js and NPM using a Node Version Manager (NVM). The procedure for this is explained in the npm documentation.
  2. Any IDE tool for Java code development

    You can use any IDE to work with the function code. Some popular choices include Visual Studio Code, IntelliJ IDEA, Eclipse, and Sublime Text. Download and install an IDE of your choice in your system.
  3. Zoho CRM Professional or Enterprise edition

    To integrate the function with Zoho CRM, we will use Webhooks and associate it with a workflow rule. Webhooks are only available in the Professional or Enterprise edition of Zoho CRM. You can check out the comparisons of various Zoho CRM editions and buy an edition from this page.