Skip to content

Commit 3f467c3

Browse files
committed
Use screenshot instead of live preview
1 parent c782920 commit 3f467c3

1 file changed

Lines changed: 10 additions & 14 deletions

File tree

docs/tutorials/getting-started-with-hydroserver-ts.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Getting Started with hydroserver.ts
22

3-
This tutorial is for developers who want to build HydroServer-powered apps without hand-writing raw API calls.
3+
This simple demo is for developers who want to build HydroServer-powered apps without hand-writing raw API calls.
44

55
We’ll use the hydroserver.ts API client to build a small browser app that will:
66

@@ -9,6 +9,10 @@ We’ll use the hydroserver.ts API client to build a small browser app that will
99

1010
The API client is written in TypeScript and gives you typed models and typed API methods end-to-end, but of course using the typing features is optional so vanilla JavaScript will work along side the client just fine, along with your choice of frontend framework.
1111

12+
## Preview
13+
14+
![HydroServer TypeScript demo app screenshot](/hydroserver-ts-demo.png)
15+
1216
## Prerequisites
1317

1418
- Node.js 20+
@@ -152,19 +156,7 @@ With this setup, the client uses `host: ""` so requests go through the local `/a
152156
4. Error handling style
153157
Calls returning `ApiResponse` should check `response.ok` and display `response.message` on failure.
154158

155-
## 3. Preview the final app in docs
156-
157-
The embedded preview below shows the final app layout and interaction flow with sample data:
158-
159-
<iframe
160-
src="/hydroserver/tutorial-previews/custom-hydroserver-app.html"
161-
title="Custom HydroServer App Preview"
162-
scrolling="no"
163-
onload="this.style.height=(this.contentWindow.document.documentElement.scrollHeight + 8) + 'px'"
164-
style="width: 100%; min-height: 760px; border: 1px solid #dbeafe; border-radius: 12px; background: #f6fbff; overflow: hidden;"
165-
></iframe>
166-
167-
## 4. Run the app
159+
## 3. Run the app
168160

169161
```bash
170162
npm run dev
@@ -177,3 +169,7 @@ Open the local Vite URL (usually `http://localhost:5173`) and you should see the
177169
- If your frontend is served by HydroServer itself, keep `host: ""` and remove the dev proxy.
178170
- If your frontend and HydroServer are on different origins, configure CORS and CSRF/session cookie settings on the HydroServer deployment.
179171
- If you prefer explicit API client instances (instead of the shared `hs` export), you can use `HydroServer.initialize(...)` and pass the instance through your app.
172+
173+
## Next step
174+
175+
Ready for more client patterns? Continue with the hydroserver.ts how-to guide: [Manage Data With the TypeScript Client](/how-to/typescript-client/typescript-client-examples).

0 commit comments

Comments
 (0)