The playground provides a set of useful examples for you to use the
@textile/js-http-client library. To make use of these examples, we recommend downloading and running the source code in VSCode.
Clone this repository.
git clone firstname.lastname@example.org:textileio/js-http-playground.git cd js-http-playground
Install the dependencies,
Finally, open the project in VSCode.
Examples are broken out in the folder called,
recipes. For example, if you want to explore
Contact Search, in VSCode open the file found at,
Inside that file is a test that runs live code from
@textile/js-http-client against your locally running Textile peer. If you haven't already, setup your local Textile peer. You can run your peer through either the Desktop application or from the command-line daemon.
Run an example
Using VSCode, you can run any example in the recipes very easily.
- Navigate to the index file for the example you'd like to run and double-click it within VSCode (e.g. open
- In the lefthand menu, select
Debug(the crossed out bug icon)
- In the upper-left, there is a drop menu beside a green play button. Choose
- Click the green play button to see the series of examples in the file execute sequentially.