Steps to download Server Stub

To download the Server Stubs,

  • Do the initial setup for ZEST.

  • Click the Export icon > Server Stub > Spring.

Spec Studio

To download Catalyst Appsail or Function,

  • click the Export icon > Serverless > Appsail or Function.
Spec Studio

How to use the Downloaded Appsail ZIP File

Follow these steps to deploy your AppSail application using a downloaded ZIP file:

  1. Assume your AppSail ZIP file has been downloaded and extracted into a directory named DemoApp.

  2. Open your terminal and navigate to your Catalyst project’s working directory.

  3. Execute the following command:

    catalyst appsail:add
    
  4. When prompted with “Do you want to use the current directory as your app’s source?”, enter N.

Spec Studio
  1. You will then be prompted to specify the path to your app’s source directory. Enter the path to the DemoApp directory where the AppSail ZIP file is located.Specify the build path for your application.
Spec Studio
  1. Enter a name for your application.
Spec Studio
  1. Select the appropriate stack and runtime for your application.
Spec Studio
  1. Deploy your AppSail service using the command:

    catalyst deploy --only appsail
    
  2. Monitor the deployment process to ensure that your application is successfully deployed and operational.

For detailed guidance, refer to the Catalyst CLI documentation on adding an AppSail service.

How to use the Downloaded Function ZIP File

  1. Include the downloaded function files from ZEST in this directory to ensure all necessary components are present.

  2. Manually create the necessary configuration files in the function’s directory, adhering to the standard structure. For guidance, refer to the Project Directory Structure help page. Compress them together into a ZIP file ensuring that when Catalyst extracts the ZIP file, the catalyst-config.json file is present at the root level.

  3. Log in to the Catalyst console and navigate to the “Functions” section under “Serverless”.

Spec Studio Spec Studio
  1. Click on “Create Function” and choose the “File Upload” option.

  2. Enter the function name and select the appropriate stack.

  3. Use the same stack name that you used when downloading the function code from ZEST. This ensures compatibility and proper functioning.

  4. Select “Advanced I/O” as the function type.

  5. Upload your ZIP file.

Last Updated 2025-06-03 18:19:55 +0530 +0530

ON THIS PAGE