You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorials/generate-new-code-using-ai.mdx
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,18 @@ sidebar_position: 50
5
5
6
6
# Generate Project Outlines With AI
7
7
8
-
Defang supports generating an outline of a project using an AI agent.
9
-
With this feature, you can describe what you would like the service to do and the [CLI](/docs/getting-started#install-the-defang-cli) will then [generate](/docs/concepts/generate) a project outline with all the files required to make it deployable with Defang.
8
+
This tutorial will show you how to use Defang's AI agent to [generate](/docs/concepts/generate) a project outline, and then deploy that project to the cloud using Defang.
9
+
10
10
<iframewidth="560"height="315"src="https://www.youtube.com/embed/afglsBYieuc?si=GCvHhBu3H9ktMDHA"title="YouTube video player"frameborder="0"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"referrerpolicy="strict-origin-when-cross-origin"allowfullscreen></iframe>
11
11
12
-
Let's take a look below on how to use Defang's AI agent to [generate](/docs/concepts/generate) an outline, and then deploy that project to the cloud using Defang.
12
+
## Step 1 - Use the `defang generate` command in the CLI
13
+
14
+
Here you can describe what you would like the service to do and the [CLI](/docs/getting-started#install-the-defang-cli) will then [generate](/docs/concepts/generate) a project outline with all the files required to make it deployable with Defang.
13
15
14
-
In this tutorial we'll use the following prompt to describe the service:
16
+
In this tutorial, we'll use the following prompt to describe our service:
15
17
16
18
"A basic service with 2 REST endpoints. The default endpoint will be for health check and should return a JSON object like this: `{ "status": "OK" }`. The /echo endpoint will echo back all request parameters in the response."
17
19
18
-
## Step 1 - Use the `defang generate` command in the CLI
0 commit comments