Liwe
an open source remote control for web applications
WARNING
This talk is not technical.
It is subject to troll.
A lot of NodeJS code were harmed in the making of this project.
That's cool!
I want to create my own.
Me. (being silly)
choose which packages to use
choose a JS framework to build it
make it responsive and simple
build a client for the webapp
realise that some cases are missing
make your node server cleaner
discover that you don't handle disconnection correctly
then realise that your princess is in another castle
Because,
it need conception
it need time
it require a server
OK,
there is something to do.
Something,
accessible for n00bs
Something,
using the most of smartphone sensors
NodeJS (of course)
Built with Express and SockJS
liwe.co is hosting the project
the WebApp
the client side
no plugin,
no servers,
just JavaScript
With a lovelay API.
Insert Liwe script
<script src="http://liwe.co/api/liwe.js">
</script>
Create a Liwe object
var myLiwe = new Liwe({
key: 'tr0l0l0lOl0Ol0Lo0000ooOo',
maxRemoteConn: 4
});
Listen for connection
myLiwe.on('connect', function (info) {
promptr('Grab your smartphone and go on ' +
info.url);
});
Wait for a remote
myLiwe.on('new_remote', function (remote) {
remote.setUI('button');
remote.on('button', function (e) {
...
});
});
the Remote
the final user
no app,
no form,
just a URL
It's HTML only.
No proper protocol defined
Lack of flexibility and component
NO UNIT/E2E TESTS!
YES I KNOW OMG WHADAFOLK AND STUFF
This is why I need your help
Feedback, improve code and new ideas
DEMO
(who bet I'm going to fail?)
Please mind the gap between the n00b and the NodeJS dev.
Thanks everybody
github.com/liwe
gitter.im/liwe/liwe
liwe.co