idb icon indicating copy to clipboard operation
idb copied to clipboard

Create a sandbox for running examples

Open psytron opened this issue 3 years ago • 2 comments

Would be awesome if the example code on main page would be working code when users cut and paste. Right now the (...) ... in examples means users must do more digging to get examples working. Working code would speed up learning and adoption for new joiners.

psytron avatar Dec 02 '21 06:12 psytron

Those are there intentionally because the examples are incomplete. The ellipsis needs to be replaced with something.

There are other examples on the page that are complete.

Would a "sandbox" be useful? As in, a page that exposes the API on the global and sets up a couple of databases, so folks could play with them in the console?

jakearchibald avatar Dec 02 '21 08:12 jakearchibald

Yeah, sandbox would be sweet too. Your examples on main page are perfect, if they were working code it would be very fast to get started and see the product in action quickly.

psytron avatar Dec 20 '21 09:12 psytron