tipi-lang/examples/web/README.md
2026-01-15 19:33:16 +01:00

6 lines
No EOL
453 B
Markdown

* Example with postgres running
* run ```cargo run -- --source examples/web --watch --postgres <connect_string>```
* the connect_string is directly passed to bb8 like [here](https://github.com/djc/bb8/blob/main/postgres/examples/static_select.rs)
* see ```main.tp``` for the database queries that it does on startup
* and head to http://localhost:3000/api/customer
* optionally, adjust the database ddl, update the query in db.tp, and recheck the output