Hello there! Welcome to our new series, "Generate with AI, Deploy on Catalyst." We're excited to present a cutting-edge series that provides step-by-step tutorials to create and deploy apps for popular use cases on Catalyst in less than 5 minutes.
Don't believe us yet? Try this tutorial to host a MySQL database and query it using Catalyst yourself—just follow these easy steps.
Step 1: Sign up for a free MySQL account on any cloud provider platform, or use an existing account. If you don't have an existing account, you can follow along with a tutorial to create your account at Clever Cloud.
Step 2: Generate a code in ChatGPT to connect to a MySQL database. The ChatGPT prompt is as follows:
"Generate Java code to connect to a MySQL database named michelin_star with username and password. Connect to a database named restaurants an query all restaurants in Paris."
Step 3: Initialize a Catalyst project using the CLI. If you haven't installed the Catalyst CLI, you can follow along with
this tutorial.
Step 5: Test locally using the Catalyst serve command and deploy your project using the Catalyst deploy command.
If you experience any issues after following these steps, feel free to add a comment in this post and we'll be happy to help.