Skip to content

Commit cf85a53

Browse files
committed
Minor: add more context on and around the collaborative clicker example.
1 parent 93f8daa commit cf85a53

File tree

12 files changed

+72
-26
lines changed

12 files changed

+72
-26
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<p align="center">
22
<a href="https://trailbase.io" target="_blank">
33
<picture>
4-
<img alt="TrailBase logo" width="150" src="https://raw.githubusercontent.com/trailbaseio/trailbase/refs/heads/main/assets/logo.svg" />
4+
<img alt="TrailBase logo" width="150" src="assets/logo.svg" />
55
</picture>
66
</a>
77
</p>
@@ -39,7 +39,7 @@
3939
<p align="center">
4040
<a href="https://demo.trailbase.io/_/admin" target="_blank">
4141
<picture>
42-
<img alt="Admin UI" width="512" src="https://raw.githubusercontent.com/trailbaseio/trailbase/refs/heads/main/docs/src/assets/screenshot.webp" />
42+
<img alt="Admin UI" width="512" src="assets/screenshot.webp" />
4343
</picture>
4444
</a>
4545
</p>

docs/src/content/docs/getting-started/first-ui-app.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ production-ready web app all in ~100 lines of code.
1313

1414
<div class="flex justify-center">
1515
<div class="w-[80%] shadow-lg ">
16-
![screenshot](../../../../../examples/coffee-vector-search/assets/screenshot.png)
16+
![screenshot](../../../../../examples/coffee-vector-search/screenshots/screenshot0.png)
1717
</div>
1818
</div>
1919

examples/README.md

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,63 @@
11
# TrailBase Examples
22

3-
#### Blog
3+
#### [Blog](blog/)
44

55
A simple styled Blog example with UIs both for web and Flutter:
66

77
<p align="center">
88
<picture align="center">
99
<img
1010
height="420"
11-
src="https://raw.githubusercontent.com/ignatz/trailbase/refs/heads/main/examples/blog/assets/screenshot_web.png"
12-
alt="Screenshot Web"
11+
src="blog/screenshots/screenshot_web.png"
12+
alt="Blog web app"
1313
/>
1414
</picture>
1515

1616
<picture align="center">
1717
<img
1818
height="420"
19-
src="https://raw.githubusercontent.com/ignatz/trailbase/refs/heads/main/examples/blog/assets/screenshot_flutter.png"
20-
alt="Screenshot Flutter"
19+
src="blog/screenshots/screenshot_flutter.png"
20+
alt="Blog Flutter app"
2121
/>
2222
</picture>
2323
</p>
2424

25-
#### Coffee Search
25+
#### [Collaborate Server-Side Rendered Clicker](collab-clicker-ssr/)
2626

27-
A very small web app demonstrating vector search and custom JS/TS endpoints.
27+
A small clicker application, where we can collaboratively make it go 🚀. It
28+
show-cases server-side rendering using SolidJS, however it could equally be
29+
React, Vue, Svelte, Preact, ... . After client-side hydration, click counter
30+
changes are streamed to everyone listening.
2831

29-
#### First App Tutorial
32+
<p align="center">
33+
<picture align="center">
34+
<img
35+
height="420"
36+
src="collab-clicker-ssr/screenshots/screenshot0.png"
37+
alt="Collaborative acorn clicker"
38+
/>
39+
</picture>
40+
</p>
41+
42+
#### [Coffee Vector Search](coffee-vector-search/)
43+
44+
A small single-page web app demonstrating vector search and custom JS/TS endpoints.
45+
46+
<p align="center">
47+
<picture align="center">
48+
<img
49+
height="420"
50+
src="coffee-vector-search/screenshots/screenshot0.png"
51+
alt="Coffee vector search web app"
52+
/>
53+
</picture>
54+
</p>
55+
56+
#### [Data CLI App](data-cli-tutorial/)
3057

31-
The code for the [tutorial](https://trailbase.io/getting-started/first-app).
58+
This code belongs to the [command-line app tutorial](https://trailbase.io/getting-started/first-cli-app):
59+
IMDB data is ingested and queried both with curl using the record list API and a custom CLI.
3260

33-
#### Custom Rust Binary
61+
#### [Custom Rust Binary](custom-binary/)
3462

3563
A quick example on how to use TrailBase as a library.

examples/blog/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
<picture align="center">
55
<img
66
height="420"
7-
src="https://raw.githubusercontent.com/ignatz/trailbase/refs/heads/main/examples/blog/assets/screenshot_web.png"
7+
src="screenshots/screenshot_web.png"
88
alt="Screenshot Web"
99
/>
1010
</picture>
1111

1212
<picture align="center">
1313
<img
1414
height="420"
15-
src="https://raw.githubusercontent.com/ignatz/trailbase/refs/heads/main/examples/blog/assets/screenshot_flutter.png"
15+
src="screenshots/screenshot_flutter.png"
1616
alt="Screenshot Flutter"
1717
/>
1818
</picture>
File renamed without changes.
File renamed without changes.

examples/coffee-vector-search/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Coffee Search
1+
# Coffee Vector Search
22

33
A small web application demonstrating the use of TrailBase and its vector
44
search to build a coffee search.
60.2 KB
Loading

examples/coffee-vector-search/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function Table() {
4242

4343
return (
4444
<>
45-
<div className="inputs">
45+
<div className="inputs" style={{ margin: "2rem" }}>
4646
<Input label="Aroma" value={aroma} update={setAroma} />
4747
<Input label="Flavor" value={flavor} update={setFlavor} />
4848
<Input label="Acidity" value={acidity} update={setAcidity} />
@@ -78,7 +78,7 @@ function Table() {
7878

7979
export const App = () => (
8080
<>
81-
<h1>Coffee Search</h1>
81+
<h1>☕ search</h1>
8282
<Table />
8383
</>
8484
);

examples/collab-clicker-ssr/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# SSR Web App with Client-Side Hydration
1+
# Collaborative Clicker App with SSR
2+
3+
This app serves as a showcase for "realtime" API subscriptions and server-side
4+
rendering (SSR). This app uses SolidJS but the same approach applies to React,
5+
Vue, Svelte, Preact, ... .
26

37
## Generate the App
48

0 commit comments

Comments
 (0)