OWNCLOUD CONF 
Connect your Javascript web app to ownCloud over the WebDAV interface 
by Ilian Sapundshiev | | 
@ilianste ilian@tagspaces.org 
in August 2014
AGENDA 
▪ Short TagSpaces Introduction + Demo 
▪ Integrating a JS app over WebDAV 
▪ Building a small ownCloud app for wrapping ot the JS app
ABOUT ME 
Ilian Sapundshiev 
▪ studied @ TUM - computer science 
▪ worked @ Dassault Systemes and Siemens 
▪ now: freelancing and leading TagSpaces 
▪ find me on twitter @ilianste or 
www.ilian.me 
▪ interested in: open web, noBackend and 3d printing
WHAT IS TAGSPACES ? 
▪ open and extensible platform for management of digital 
artefacts 
▪ letting you organize, tag, browse and find your local files, photos 
and documents on "every" platforms. 
▪ project initiated 2013 in Munich under the AGPL license 
▪ build with HTML5, Javascript, Cordova, Node-Webkit and many 
other great libs 
▪ currently searching for contributors and investors 
▪ tagspaces.org, github.com/uggrock/tagspaces, @tagspaces
DEMO
SOFTWARE ARCHITECTURE
CHALLENGE 
▪ TagSpaces is an offline application, completely backendless 
▪ But many users wanted to use it on the Internet 
▪ I needed a server version of TagSpaces
SOLUTION - BASED ON OWNCLOUD 
Why ownCloud? 
▪ open source 
▪ easy to extend 
▪ supporting "open" standards like WebDav, CalDav, ...
SOLUTION 
Part 1 - integrating with the WebDAV inteface 
Part 2 - build a simple ownCloud app for a tighted integration
PART 1 - INTEGRATION OVER WEBDAV 
JavaScript WebDAV Library 
Library name: js-webdav-client 
Licensed under LGPL 
github.com/sara-nl/js-webdav-client 
API reference - http://sara-nl.github.com/js-webdav-client/
LIMITATIONS 
Due to the CORS limitations ownCloud and 
TagSpaces have to be located on the same server
CONNECTING TO WEBDAV
USING WEBDAV IN JS
CONNECTING TAGSPACES TO THE OWNCLOUD 
SERVER
DEMO - TAGSPACES AS ALTERNATIVE TO 
OWNCLOUD'S FILE APP
PART 2 -BUILD AN OWNCLOUD APP 
Drawback of the previous solution is the login dialog
STRUCTURE OF THE APP
OWNCLOUD ADMIN
TAGSPACES RUNNING ON LOCALHOST
AUTOMATICALLY REDIRECTION TO THE APP
POSSIBLE NEXT STEPS 
▪ integrating the ownCloud search 
▪ adding links to setting and logout buttons 
▪ integrating contacts or calendar 
▪ ...
THE END 
THANK YOU! QUESTIONS? 
Ilian Sapundshiev @ilianste 
Powered by Mindslide for Freeplane, using Reveal.js

Connect your Javascript web app to ownCloud over the WebDAV interface

  • 1.
    OWNCLOUD CONF Connectyour Javascript web app to ownCloud over the WebDAV interface by Ilian Sapundshiev | | @ilianste ilian@tagspaces.org in August 2014
  • 2.
    AGENDA ▪ ShortTagSpaces Introduction + Demo ▪ Integrating a JS app over WebDAV ▪ Building a small ownCloud app for wrapping ot the JS app
  • 3.
    ABOUT ME IlianSapundshiev ▪ studied @ TUM - computer science ▪ worked @ Dassault Systemes and Siemens ▪ now: freelancing and leading TagSpaces ▪ find me on twitter @ilianste or www.ilian.me ▪ interested in: open web, noBackend and 3d printing
  • 4.
    WHAT IS TAGSPACES? ▪ open and extensible platform for management of digital artefacts ▪ letting you organize, tag, browse and find your local files, photos and documents on "every" platforms. ▪ project initiated 2013 in Munich under the AGPL license ▪ build with HTML5, Javascript, Cordova, Node-Webkit and many other great libs ▪ currently searching for contributors and investors ▪ tagspaces.org, github.com/uggrock/tagspaces, @tagspaces
  • 5.
  • 6.
  • 7.
    CHALLENGE ▪ TagSpacesis an offline application, completely backendless ▪ But many users wanted to use it on the Internet ▪ I needed a server version of TagSpaces
  • 8.
    SOLUTION - BASEDON OWNCLOUD Why ownCloud? ▪ open source ▪ easy to extend ▪ supporting "open" standards like WebDav, CalDav, ...
  • 9.
    SOLUTION Part 1- integrating with the WebDAV inteface Part 2 - build a simple ownCloud app for a tighted integration
  • 10.
    PART 1 -INTEGRATION OVER WEBDAV JavaScript WebDAV Library Library name: js-webdav-client Licensed under LGPL github.com/sara-nl/js-webdav-client API reference - http://sara-nl.github.com/js-webdav-client/
  • 11.
    LIMITATIONS Due tothe CORS limitations ownCloud and TagSpaces have to be located on the same server
  • 12.
  • 13.
  • 14.
    CONNECTING TAGSPACES TOTHE OWNCLOUD SERVER
  • 15.
    DEMO - TAGSPACESAS ALTERNATIVE TO OWNCLOUD'S FILE APP
  • 16.
    PART 2 -BUILDAN OWNCLOUD APP Drawback of the previous solution is the login dialog
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
    POSSIBLE NEXT STEPS ▪ integrating the ownCloud search ▪ adding links to setting and logout buttons ▪ integrating contacts or calendar ▪ ...
  • 22.
    THE END THANKYOU! QUESTIONS? Ilian Sapundshiev @ilianste Powered by Mindslide for Freeplane, using Reveal.js