From 215dc13797125de3222f61a9b57f0b9d97edc719 Mon Sep 17 00:00:00 2001 From: Shautvast Date: Sun, 11 Jan 2026 15:23:10 +0100 Subject: [PATCH] readme for web example --- examples/web/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 examples/web/README.md diff --git a/examples/web/README.md b/examples/web/README.md new file mode 100644 index 0000000..5dd73a9 --- /dev/null +++ b/examples/web/README.md @@ -0,0 +1,18 @@ +* currently needs postgres on the default port +* user 'postgres' +* password 'boompje' +* create a table +``` +create table customers( + id bigint primary key, + first_name varchar(50), + last_name varchar(50) +) +``` +* insert data +``` +insert into customers (first_name,last_name) values ('first', 'last') +``` +* run ```cargo run -- --source examples/web --watch``` +* and head to http://localhost:3000/api/customer +* optionally, adjust the database ddl, update the query in db.tp, and recheck the outpout \ No newline at end of file