bunsenbrowser / bunsen

🔥 Bunsen Browser provides easy to use offline P2P application and file distribution that is verifiable on Android devices. https://bunsenbrowser.github.io/
117 stars 7 forks source link

Add client side tests for dat archive proxy polyfill #69

Closed rjcorwin closed 5 years ago

rjcorwin commented 5 years ago

This adds https://github.com/bunsenbrowser/bunsen-datArchive-test into the proxy server's folder mounted as a static route at /test. This is for the sake of having a quick and easy way to test the interaction between dat-archive.js and the proxy. I'm hoping this will make development of APIs easier, in particular the DatArchive.watch API I hope to work on tomorrow.

screen shot 2018-11-24 at 9 06 57 pm

In the future the dat-archive.js file should probably be its own package but for now this repo might make sense for it to live for ease of development. Last though, perhaps we name dat-archive.js something like dat-archive-proxy-polyfill.js.