Test the Application

Before you deploy the application to the remote console, you can test the application on a local server and check if everything works fine using the Catalyst CLI.

To serve the Catalyst project locally, execute the following command from your project directory:

copy
$
catalyst serve

The Lead Manager application will now be served at default port 3000. The local endpoint URLs of the components are displayed.

Note: Every time you access the homepage or any of the sub-pages of your client, or the function, the CLI will display a live log of the URL accessed, along with the HTTP request method.

catalyst_leadmanager_serve

You can now open the application in a browser using the local URL of the client displayed in the CLI.

You will initially be redirected to the login page. If you configure a sign-up action on your own, you can sign up first, then log in to the application. Otherwise, you can log in using the Zoho sign-in icon.

catalyst_leadmanager_test_1

You will be redirected to the permissions page. Accept the permissions requested by the app to access your Zoho account details.

catalyst_leadmanager_test_2

You will then be redirected back to the application. Click the Zoho CRM icon in this page to connect to Zoho CRM.

catalyst_leadmanager_test_3

You must now choose the CRM account that you wish to connect with the Lead Manager app, then click Submit. All your existing developer, sandbox, and production accounts will be listed.

catalyst_leadmanager_test_4

Click Accept to allow the Lead Manager app to access your Zoho CRM modules.

catalyst_leadmanager_test_5

You will be redirected back to the application. You can now create and manage leads in your configured Zoho CRM account, directly from this application.

To add a lead, enter the details of the lead in the Add a Lead section and click Add Lead.

catalyst_leadmanager_test_6

A confirmation pop-up will display the status every time you add, edit, or delete a lead.

catalyst_leadmanager_test_7

You can click the Manage Leads tab to view all your leads from the Leads module. You can edit or delete any of them by clicking their respective icons in the table.

catalyst_leadmanager_test_8

You can update a lead’s information, then click Edit.

catalyst_leadmanager_test_9

If you click the delete icon, you must confirm the action in the confirmation pop-up.

catalyst_leadmanager_test_10

You can also check the Refresh Token and userID values populated in the Data Store from your Catalyst console. Navigate to the Data View section of the Token table to view the record that was added.

catalyst_leadmanager_test_11

If you delete this entry, you will have to authenticate your credentials in the client application and establish a connection to your CRM account again.

You can log out of the application by clicking Logout.

If this setup is working correctly, we can deploy the application to production.

You can quit the serve session in your terminal by executing the command to kill a running process, based on your OS.

Last Updated 2023-12-19 12:35:38 +0530 +0530

RELATED LINKS

Serve CLI Resources