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 using the Catalyst CLI. For detailed information on catalyst serve, refer to the Serve Resources help page.
To serve the Catalyst project locally, execute the following command from your project directory:
The payslip generator application will now be served at default port 3000. The local endpoint URLs of the components will be displayed in the CLI.
You can now open the client component’s local URL in a browser to access the application.
Add sample data in the form to test the functionality of the application, and click Submit.
You will get a success prompt after the email is sent.
Log in to the email account you had entered here, and you will find an email that contains the payslip as a PDF attachment.
If you view the attachment, you will find the details you inputted in the form rendered in your custom template.
Depending on the email provider you use, you will also be able to download and save the payslip.pdf document in your local system.
If the test run was successful, we can deploy the project to the console.
Last Updated 2023-12-15 18:54:08 +0530 +0530