Skip to content

Commit 11b2f7c

Browse files
committed
Adding Deploy to Cloudflare buttons for Hyperdrive
1 parent 82fcf8e commit 11b2f7c

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

src/content/docs/hyperdrive/get-started.mdx

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,31 @@ Learn more about the [databases that Hyperdrive supports](/hyperdrive/reference/
2727

2828
:::
2929

30+
## Quick start
31+
32+
If you want to skip the steps and get started quickly, click on the button below.
33+
34+
<Tabs syncKey ="sqlType">
35+
<TabItem label="PostgreSQL">
36+
37+
**PostgreSQL deployment**
38+
39+
[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/hyperdrive-get-started/hyperdrive/hyperdrive-get-started-postgres)
40+
41+
</TabItem>
42+
<TabItem label="MySQL">
43+
44+
**MySQL deployment**
45+
46+
[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/docs-examples/tree/hyperdrive-get-started/hyperdrive/hyperdrive-get-started-mysql)
47+
48+
</TabItem>
49+
</Tabs>
50+
51+
This creates a repository in your GitHub account and deploys the application to Cloudflare Workers. Use this option if you are familiar with Cloudflare Workers, and wish to skip the step-by-step guidance.
52+
53+
You may wish to manually follow the steps if you are new to Cloudflare Workers.
54+
3055
## Prerequisites
3156

3257
Before you begin, ensure you have completed the following:
@@ -104,7 +129,7 @@ To create your first Hyperdrive, you will need:
104129

105130
Hyperdrive accepts the combination of these parameters in the common connection string format used by database drivers:
106131

107-
<Tabs>
132+
<Tabs syncKey ="sqlType">
108133
<TabItem label="PostgreSQL">
109134
```txt
110135
@@ -179,7 +204,7 @@ Once you have created a Hyperdrive configuration and bound it to your Worker, yo
179204

180205
### Install a database driver
181206

182-
<Tabs>
207+
<Tabs syncKey ="sqlType">
183208
<TabItem label="PostgreSQL">
184209

185210
To connect to your database, you will need a database driver which allows you to authenticate and query your database. For this tutorial, you will use [Postgres.js](https://github.com/porsager/postgres), one of the most widely used PostgreSQL drivers.
@@ -206,7 +231,7 @@ With the driver installed, you can now create a Worker script that queries your
206231

207232
### Write a Worker
208233

209-
<Tabs>
234+
<Tabs syncKey ="sqlType">
210235
<TabItem label="PostgreSQL">
211236
After you have set up your database, you will run a SQL query from within your Worker.
212237

0 commit comments

Comments
 (0)