Skip to content

Commit dab1109

Browse files
drizzle gateway
1 parent 43a0a53 commit dab1109

File tree

3 files changed

+156
-0
lines changed

3 files changed

+156
-0
lines changed
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
import CenteredLayout from "@/ui/CenteredLayout.astro";
2+
import Tab from '@mdx/Tab.astro';
3+
import Tabs from '@mdx/Tabs.astro';
4+
import Steps from '@mdx/Steps.astro';
5+
import Npm from "@mdx/Npm.astro";
6+
import Npx from "@mdx/Npx.astro";
7+
import f from "@mdx/RowCodeWrap.astro"
8+
9+
<CenteredLayout isStudio={true} customTitle="Meet Drizzle Studio">
10+
# Meet Drizzle Gateway
11+
12+
## Docker quick start
13+
<Steps>
14+
15+
#### Create a named docker volume
16+
```shell
17+
docker volume create drizzle-gate
18+
```
19+
20+
#### Run the container
21+
```shell
22+
docker run -d \
23+
--name drizzle-gate \
24+
--restart always \
25+
-p 4983:4983 \
26+
-e PORT=4983 \ # Set the port for Drizzle Gateway (optional)
27+
-e STORE_PATH=./app \ # Set your store path here (optional)
28+
-e MASTERPASS=your_master_password \ # Set your master password here (optional)
29+
-v drizzle-gate:/app \
30+
ghcr.io/drizzle-team/gateway:latest
31+
```
32+
33+
</Steps>
34+
35+
## Binary quick start
36+
<Steps>
37+
#### Create a directory for the binary and set permissions
38+
```shell
39+
mkdir drizzle-gateway
40+
cd drizzle-gateway
41+
```
42+
43+
#### Download the latest release depending on your OS and architecture
44+
linux-arm64
45+
```shell
46+
curl -Lo start https://pub-e240a4fd7085425baf4a7951e7611520.r2.dev/drizzle-gateway-0.1.1-linux-arm64
47+
```
48+
linux-x64
49+
```shell
50+
curl -Lo start https://pub-e240a4fd7085425baf4a7951e7611520.r2.dev/drizzle-gateway-0.1.1-linux-x64
51+
```
52+
macos-arm64
53+
```shell
54+
curl -Lo start https://pub-e240a4fd7085425baf4a7951e7611520.r2.dev/drizzle-gateway-0.1.1-macos-arm64
55+
```
56+
macos-x64
57+
```shell
58+
curl -Lo start https://pub-e240a4fd7085425baf4a7951e7611520.r2.dev/drizzle-gateway-0.1.1-macos-x64
59+
```
60+
61+
#### Make the binary executable
62+
```shell
63+
chmod +x start
64+
```
65+
66+
#### Run the binary
67+
```shell
68+
./start
69+
```
70+
</Steps>
71+
72+
## Usage
73+
Once Drizzle Gateway is running, you can access it via the web interface at `http://localhost:4983`.
74+
You can connect to your databases, run queries, and manage your data through the intuitive UI.
75+
76+
## What's next?
77+
We're going to massively improve and extend Drizzle Gateway in the upcoming months!
78+
Subscribe on [Twitter](https://twitter.com/DrizzleORM) and welcome to our [Discord](https://driz.link/discord)
79+
80+
## Changelog
81+
82+
**0.1.1**
83+
84+
- Added the ability to create/alter/drop schemas.
85+
- Added the ability to create/alter tables.
86+
- Added the ability to create/alter views.
87+
- Added the ability to create enums.
88+
- Added uuid, cidr, inet, macaddr and macaddr8 data types.
89+
- Added range selection with copy/paste capability.
90+
- Added new setting option for expanding subviews.
91+
- Added datepicker and timepicker.
92+
- Improved error handling for INSERT/UPDATE/DELETE.
93+
- Added a multiline editor.
94+
- Added error handling in schema management.
95+
- Added a new setting option for pagination by page.
96+
- Added column type to header cell.
97+
98+
</CenteredLayout>

src/ui/components/AsidePosts.astro

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,54 @@
160160
>
161161
</div>
162162
</a>
163+
<a href="/drizzle-gateway/overview" target="_blank" class="aside-posts__wrap">
164+
<div class="aside-posts__image">
165+
<div class="aside-posts__image--learn">
166+
<svg
167+
xmlns="http://www.w3.org/2000/svg"
168+
width="24"
169+
height="24"
170+
viewBox="0 0 24 24"
171+
>
172+
<path
173+
fill="currentColor"
174+
d="M8.422 20.618C10.178 21.54 11.056 22 12 22V12L2.638 7.073a3.196 3.196 0 0 0-.04.067C2 8.154 2 9.417 2 11.942v.117c0 2.524 0 3.787.597 4.801c.598 1.015 1.674 1.58 3.825 2.709z"
175+
/>
176+
<path
177+
fill="currentColor"
178+
d="m17.577 4.432l-2-1.05C13.822 2.461 12.944 2 12 2c-.945 0-1.822.46-3.578 1.382l-2 1.05C4.318 5.536 3.242 6.1 2.638 7.072L12 12l9.362-4.927c-.606-.973-1.68-1.537-3.785-2.641"
179+
opacity="0.7"
180+
/>
181+
<path
182+
fill="currentColor"
183+
d="M21.403 7.14a3.153 3.153 0 0 0-.041-.067L12 12v10c.944 0 1.822-.46 3.578-1.382l2-1.05c2.151-1.129 3.227-1.693 3.825-2.708c.597-1.014.597-2.277.597-4.8v-.117c0-2.525 0-3.788-.597-4.802"
184+
opacity="0.5"
185+
/>
186+
<path
187+
fill="currentColor"
188+
d="m6.323 4.484l.1-.052l1.493-.784l9.1 5.005l4.025-2.011c.137.155.257.32.362.498c.15.254.262.524.346.825L17.75 9.964V13a.75.75 0 0 1-1.5 0v-2.286l-3.5 1.75v9.44A3.062 3.062 0 0 1 12 22c-.248 0-.493-.032-.75-.096v-9.44l-8.998-4.5c.084-.3.196-.57.346-.824a3.15 3.15 0 0 1 .362-.498l9.04 4.52l3.387-1.693z"
189+
/>
190+
</svg>
191+
</div>
192+
</div>
193+
<div class="aside-posts__text">Gateway</div>
194+
<div class="aside-posts__arrow-right">
195+
<svg
196+
xmlns="http://www.w3.org/2000/svg"
197+
width="24"
198+
height="24"
199+
viewBox="0 0 24 24"
200+
fill="none"
201+
stroke="currentColor"
202+
stroke-width="2"
203+
stroke-linecap="round"
204+
stroke-linejoin="round"
205+
class="feather feather-arrow-right"
206+
><line x1="5" y1="12" x2="19" y2="12"></line><polyline
207+
points="12 5 19 12 12 19"></polyline></svg
208+
>
209+
</div>
210+
</a>
163211
<a href="https://drizzle.run" class="aside-posts__wrap">
164212
<div class="aside-posts__image">
165213
<div class="aside-posts__image--learn">
@@ -299,6 +347,10 @@
299347
margin-top: -41px;
300348
}
301349

350+
.aside-posts__wrap:nth-child(6) {
351+
margin-top: -41px;
352+
}
353+
302354
.aside-posts__wrap:nth-child(2) .aside-posts__image {
303355
margin-left: 32px;
304356
}
@@ -316,6 +368,11 @@
316368
opacity: 0;
317369
}
318370

371+
.aside-posts__wrap:nth-child(6) .aside-posts__image {
372+
margin-left: 80px;
373+
opacity: 0;
374+
}
375+
319376

320377
.aside-posts__wrap:hover {
321378
background-color: #eff0f3;

src/ui/components/Footer.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const { isCenteredLayout } = Astro.props;
7777
<div class="link-group-title">Resources</div>
7878
<div>
7979
<a class="link-group-item" href="/drizzle-studio/overview">Drizzle Studio</a>
80+
<a class="link-group-item" href="/drizzle-gateway/overview">Drizzle Gateway</a>
8081
<a class="link-group-item" href="/benchmarks">Benchmarks</a>
8182
</div>
8283
</div>

0 commit comments

Comments
 (0)