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.
We will first test the cron function using the functions shell in the CLI, and then serve the Advanced I/O function and the client locally to test the frontend of the application.
To open the functions shell in your CLI, execute the following command from your project directory (CATALYST_PROJECT_HOME):
This will open the functions shell for the cron function in the CLI where you can test its execution.
Before that, you can execute the below command to generate a sample payload to pass in the shell:
You can copy the job pool ID from the job pool that was created in Step 3 using the Catalyst console.

The generated payload will look like this :

To invoke the function, enter newsapp() in the shell, pass the generated payload within the braces and press Enter.

When testing the Job Function using the shell command, the response indicates the execution status of the function, either success or failure.

The function’s execution status is returned as success. This will make the API call to NewsAPI and fetch the news items from each category, and populate them in the Data Store.
You can check the Data Store component if the data has been populated as expected.

Now, let’s host the client component locally and check the frontend of the application.
To serve the Catalyst project locally, execute the following command from your project directory (CATALYST_PROJECT_HOME):
The news application will now be served at default port 3000. The local endpoint URLs of the components (the client and the Advanced I/O function) are displayed.

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

The news application displays the general news headlines on the index page. You can click a topic on the left to check the latest headlines in that category. You can open the original news article by clicking on a headline.
If this setup is working correctly, we can deploy the application to the console.
Last Updated 2025-06-16 18:07:38 +0530 +0530