Skip to content

Commit 462ca2a

Browse files
committed
More minor tweaks to coffee tutorial.
1 parent d4a3b5b commit 462ca2a

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

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

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ title: >
66
import { Code } from "@astrojs/starlight/components";
77
import { Aside } from "@astrojs/starlight/components";
88

9-
This tutorial is a short introduction to TrailBase and some of its features.
9+
This article is a short introduction to TrailBase and some of its features.
1010
We'll bootstrap a database with coffee data, implement a custom TypeScript HTTP
11-
handler for finding the best coffee matches using vector search, and deploy a
12-
simple production-ready web app all in ~100 lines of code.
11+
handler for finding the best matches using vector search, and deploy a simple
12+
production-ready web app all in ~100 lines of code.
1313

1414
<div class="flex justify-center">
1515
<div class="w-[80%] shadow-lg ">
@@ -35,7 +35,8 @@ import GettingTrailBase from "./_getting_trailbase.md";
3535

3636
## Importing Data
3737

38-
We'll use the `sqlite3` CLI[^1] directly to import
38+
Before building the app, let's import some data. Keeping it simple,
39+
we'll use the `sqlite3` CLI[^1] directly to import
3940
`examples/coffeesearch/arabica_data_cleaned.csv` with the following SQL
4041
script:
4142

@@ -50,8 +51,8 @@ import importScript from "../../../../../examples/coffeesearch/import.sql?raw";
5051

5152
Note that we didn't initialize the vector `embedding`. This is merely because
5253
`sqlite3` doesn't have the necessary extensions built-in.
53-
We'll update the entries to add the embedding later as part of our initial
54-
database migrations shortly[^2].
54+
We'll update the entries later on, adding the embedding as part of our initial
55+
database migrations[^2].
5556

5657
From within the `example/coffeesearch` directory, you can execute the script
5758
above and import the coffee data by running:
@@ -138,7 +139,7 @@ In case you want to build your own, we recommend
138139
framework, e.g.: `npm create vite@latest my-project -- --template react`.
139140

140141
Our provided reference implementation, renders 4 numeric input fields to search
141-
for coffee with a given aroma, flavor, acidity and sweetness score:
142+
for coffee with a certain aroma, flavor, acidity and sweetness score:
142143

143144
import uiCode from "../../../../../examples/coffeesearch/src/App.tsx?raw";
144145

@@ -173,9 +174,10 @@ as well as custom API by running:
173174
$ trail run --public-dir dist
174175
```
175176

176-
You can now check out your fuly self-contained app under
177-
[http://localhost:4000/](http://localhost:4000/) or browse the coffee data in
178-
the [admin dashboard](http://localhost:4000/_/admin).
177+
You can now check out your fully self-contained app under
178+
[http://localhost:4000/](http://localhost:4000/) or browse the coffee data and
179+
access logs in the [admin dashboard](http://localhost:4000/_/admin).
180+
The admin credentials are logged to the terminal on first start.
179181

180182
All[^4] we need to serve our application in production is:
181183

0 commit comments

Comments
 (0)