Initialize and Install the Required Dependencies

To run the application on a Node.js Express framework, let’s initialize the Catalyst Node.js SDK, Node modules, Axios and Express package for your application.

Enter the following command in your CLI in your project directory /LeadManager to initialize the Node modules:

copy
$
npm init
  • Enter “leadmanagerapp” as the package name, and “index.js” as the entry point. You can also just click Enter to use the default names generated by NPM, or enter any name of your preference. catalyst_tutorials_leadmanager_appsail_init_npm

  • Click Enter for the rest of the prompts, and complete the initialization. Your preferences will be stored in a package.json file. You can review your options in the terminal and confirm your preferences by entering “yes”. catalyst_tutorials_leadmanager_appsail_npm_init_cmpltd

  • Create a new file in your project directory and name it “index.js” If you have provided a different name for your entry point, ensure you provide the same name here.

Install Express

Now, let’s install the Express package in your project’s root folder using the following command:

copy
$
npm install express

catalyst_tutorials_leadmanager_appsail_install_express

Install Axios

Now, let’s install the Axios package in your project’s root folder using the following command:

copy
$
npm install axios

catalyst_tutorials_leadmanger_appsail_axios_install

Install Catalyst Node.js SDK

We will utilize Catalyst components in this app. To use them, you will also need to install the Catalyst Node.js SDK package in your project’s root folder using the following CLI command:

copy
$
npm install zcatalyst-sdk-node

catalyst_tutorials_leadmanager_appsail_isntall_sdk_pack

Now your directory will contain the node_modules folder, the package.json, package-lock.json, and the index.js file, in addition to the existing files.

catalyst_tutorials_leadmanager_appsail_func_dir

Last Updated 2025-01-31 19:19:27 +0530 +0530

RELATED LINKS

Node SDK