trailbase/examples/coffee-vector-search
2026-03-26 11:21:16 +01:00
..
assets Clean up examples and tutorials as well as minor doc tweaks. 2025-01-24 14:26:16 +01:00
guests Update JS dependencies. Upgrade to TS6. 2026-03-26 11:21:16 +01:00
screenshots Minor: add more context on and around the collaborative clicker example. 2025-01-24 16:58:57 +01:00
src Minor: add more context on and around the collaborative clicker example. 2025-01-24 16:58:57 +01:00
traildepot Move "main" DB migrations into <traildepot>/migrations/main to follow latest best practices. 2025-12-12 13:04:02 +01:00
.dockerignore Clean up examples and tutorials as well as minor doc tweaks. 2025-01-24 14:26:16 +01:00
.gitignore Clean up examples and tutorials as well as minor doc tweaks. 2025-01-24 14:26:16 +01:00
arabica_data_cleaned.csv Clean up examples and tutorials as well as minor doc tweaks. 2025-01-24 14:26:16 +01:00
Dockerfile Pull in latest TB image for example docker setups. 2025-03-20 23:26:06 +01:00
eslint.config.js Clean up examples and tutorials as well as minor doc tweaks. 2025-01-24 14:26:16 +01:00
import.sql Clean up examples and tutorials as well as minor doc tweaks. 2025-01-24 14:26:16 +01:00
index.html Clean up examples and tutorials as well as minor doc tweaks. 2025-01-24 14:26:16 +01:00
Makefile Stop encoding SQL values as generic JSON values (outside the context of the record API), i.e. for admin APIs and between WASM host/guest. 2025-10-21 16:40:45 +02:00
package.json Update JS dependencies. Upgrade to TS6. 2026-03-26 11:21:16 +01:00
README.md Add Dart workspace and clean up pre-commit hooks. 2025-07-24 15:54:00 +02:00
tsconfig.json Clean up examples and tutorials as well as minor doc tweaks. 2025-01-24 14:26:16 +01:00
vite.config.ts Clean up examples and tutorials as well as minor doc tweaks. 2025-01-24 14:26:16 +01:00

Coffee Vector Search

A small web application demonstrating the use of TrailBase and its vector search to build a coffee search.

To import the coffee data from CSV, run:

$ mkdir -p traildepot/data
$ cat import.sql | sqlite3 traildepot/data/main.db -

To build the web app

$ pnpm i
$ pnpm build

Finally, to build the docker container:

$ docker build . -t coffee && docker run -p 4001:4000 coffee

Reference