453 B
453 B
- Example with postgres running
- run
cargo run -- --source examples/web --watch --postgres <connect_string> - the connect_string is directly passed to bb8 like here
- see
main.tpfor 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