Steps to Initialize, Debug, Serve, and Deploy an AppSail Service
This section presents an overview of steps for initializing, debugging, serving, and deploying an AppSail service using the Catalyst CLI, as well as an IDE to code and debug the app.
- Initializing an AppSail Service: Catalyst AppSail services can be initialized from the Catalyst CLI similar to Serverless functions and the web client component. You can initialize an app service in two ways:
-
During project initialization: Choose this method if you are initializing the AppSail service during the project’s initialization in the CLI
-
By adding it in an existing project: Choose this method if you require an AppSail service to be added to a project that has already been initialized in your local environment.
-
Standalone deploy: Choose this method if you prefer to deploy an AppSail service right away without initializing it in prior. This method combines initialization and deployment. This is suitable for apps that have already been built and tested, and are ready to be deployed to Catalyst directly.
Catalyst will obtain inputs for certain configuration information required to deploy and run your app in all cases.
-
Building an AppSail Service: After you initialize an AppSail service in the first two methods, open the Catalyst directory that your AppSail was initialized or added in your IDE. Choose an IDE based on the programming environment or runtime you are working with. The directory will be named the same name you provide for your app in the previous step. You can proceed to code your AppSail service, or migrate your existing code in this directory.
-
Debugging an AppSail Service: You can debug your AppSail service in your IDE and test your setup. Examples of debugging apps built on specific frameworks with popular IDEs are covered in detail in the next section.
-
Serving an AppSail Service: After you complete testing your app, it will be built based on the specifications you provided and the compiled code will be available in your app’s build path. You can serve your AppSail service through a localhost from the Catalyst CLI environment before you deploy it.
-
Deploying an AppSail Service: You can deploy your AppSail service from your local environment using the standard catalyst deploy command. This is the regular deployment option. If you had chosen to perform a standalone deployment in the first step, your app would be initialized and deployed simultaneously.
After your AppSail service is deployed to your project from your local environment, you will be able to access it in the Catalyst console, and manage, monitor, or modify its configurations as needed.
Last Updated 2024-01-04 12:37:42 +0530 +0530
Yes
No
Send your feedback to us