This weekend we hack! - here's the long-awaited demo of unhosted v0.3 (dev preview only)

8 views
Skip to first unread message

Michiel de Jong

unread,
Mar 25, 2011, 4:09:58 PM3/25/11
to unhosted
Hi,

As I promised, this weekend you will be able to start writing unhosted web apps using version 0.3. We will be on IRC (channel #unhosted on irc.freenode.net) tomorrow afternoon and Sunday afternoon (European time).

Here is an exclusive preview of how I propose unhosted v0.3 should work. It will only work in chromium and chrome, NOT in firefox. It is meant for you, who finally want to start developing unhosted web apps for the unhosted standard v0.3. I'm calling it a standard now rather than a protocol, because we managed to reduce it to a mixture of existing protocols/standards, and to implement it on a stack of existing software packages.

Standard/protocols:

- CORS for cross-origin AJAX
- WebFinger for discovering where the user's data lives
- OAuth2-cs ('client-side') for logging in
- DAV for the key-value store


Software used on demo.redlibre.org:

- Debian Lenny
- apache2
- libapache2-mod-php5 (minimal amount of glue-code for WebFinger and OAuth2)
- mod_headers (for CORS)
- mod_dav and mod_dav_fs (for DAV)

You can log in with de...@demo.redlibre.org (password: demo).
If you get a blank screen in the popup, just close the popup and refresh the 'main' window. the main window and the popup communicate with each other through html5 localStorage.

To get a good view of what's happening in developer tools, put a breakpoint on the window.location assignment in www.myfavouritesandwich.org/popup.html, and on the window.close call in www.myfavouritesandwich.org/cb.html while not logged in.

I trust you will use this demo only to look at how it works, not to try to hack it or to upload warez to my DAV server. And please don't put naughty ingredients on your favourite sandwich (although 'foo' and 'bar' are acceptable sandwich ingredients in this case). Enjoy!


Cheers,
Michiel

Thad Guidry

unread,
Mar 25, 2011, 5:15:30 PM3/25/11
to unho...@googlegroups.com
avocado and Elin Nordegren are perfectly acceptable ingredients, however.

One quibble: Protocol is used on the demo text near bottom of page:

This is a fictional site that acts as demo for the Unhosted protocol,
a tutorial, so you can take a look at the code to understand how
Unhosted works.

2cents,

--
-Thad
http://www.freebase.com/view/en/thad_guidry

Michiel de Jong

unread,
Mar 25, 2011, 6:38:48 PM3/25/11
to unho...@googlegroups.com
yes, i just noticed that as well, will fix that tomorrow. Cheers!
Reply all
Reply to author
Forward
0 new messages