We have been working very hard on a distributed architecture that would support a hotel related part of our Winding Tree platform. And today, we are finally able to show you a piece of code that should demonstrate, how easy it can be to read data from it.

So without further ado, here it is:

In these 50 lines of code, we are configuring an instance of wt-js-libs and accessing a demo Winding Tree Index on Ethereum’s Ropsten testnet and then downloading descriptive JSON data about two hotels from two different storages — HTTPS and Swarm.

There’s of course a lot of code under the hood, but our goal is to provide tools that will significantly lower the necessary level of knowledge required to use our platform. So this is only a first version and a first level of abstraction. We are also building a REST API that wraps all of our platform in a communication protocol familiar to millions of developers.

“But how do I put the data there?” I can hear you ask. That’s actually much more complicated than just reading the data, and we are still figuring out how to make it so easy that everyone would instantly love it.

The code of this simple demo is on my GitHub and I plan to update it from time to time to showcase our progress. If you are interested in a broader picture, check out our GitHub project for the nearest release. For any technical questions or feedback, you are also welcome in our Google Group!