22
Web debug and node.js inspection Debug the web everywhere Etienne Margraff Web dev @Microsoft - Vorlon.js creator @meulta

Web debug and node.js inspection Debug the web everywhere

Embed Size (px)

Citation preview

Page 1: Web debug and node.js inspection Debug the web everywhere

Web debug and node.js inspectionDebug the web everywhere

Etienne Margraff

Web dev @Microsoft - Vorlon.js creator

@meulta

Page 2: Web debug and node.js inspection Debug the web everywhere

THE web ;)

Cross-platformsAdaptive

Standard

@meulta

Page 3: Web debug and node.js inspection Debug the web everywhere

How to debug?

console.logF12

@meulta

Page 4: Web debug and node.js inspection Debug the web everywhere

What about mobile?

@meulta

WeinReProprietary tools

Page 5: Web debug and node.js inspection Debug the web everywhere

http://vorlonjs.io

Remote, cross-platform and open-source

Web debugging tool

Node.js

Express.js

Socket.io

Passport.js

@meulta

Page 6: Web debug and node.js inspection Debug the web everywhere

Collaborative demo!

http://bit.ly/vorlonRennes@meulta

Page 7: Web debug and node.js inspection Debug the web everywhere

How to use Vorlon?

Page 8: Web debug and node.js inspection Debug the web everywhere

Step 1 – Server install

or clone/fork

http://github.com/microsoftdx/vorlonjs

or auto deploy vers Azure

or use the Docker container

npm install –g vorlonvorlon

@meulta

Page 9: Web debug and node.js inspection Debug the web everywhere

Step 2 – Add one line to your website

<script src="http://localhost:1337/vorlon.js"></script>

And that’s all…

@meulta

Page 10: Web debug and node.js inspection Debug the web everywhere

And it can be simpler!

@meulta

Page 11: Web debug and node.js inspection Debug the web everywhere

Demo !

Page 12: Web debug and node.js inspection Debug the web everywhere

Node.js inspection ?

npm install vorlon-node-wrapper

First add the wrapper

@meulta

Page 13: Web debug and node.js inspection Debug the web everywhere

Node.js inspection

var vorlon = require("vorlon-node-wrapper");

vorlon.start("http://votreInstanceVorlon/", "default", false

);

Use the wrapper synchronously

@meulta

Page 14: Web debug and node.js inspection Debug the web everywhere

Node.js inspection

vorlon.start("http://votreInstanceVorlon/", "default", true,function() {

//Vorlon connected}

);

Or do it async

@meulta

Page 15: Web debug and node.js inspection Debug the web everywhere

Demo !

Page 16: Web debug and node.js inspection Debug the web everywhere

How to create a plugin ?

Page 17: Web debug and node.js inspection Debug the web everywhere

How to create a plugin

http://bit.ly/vorlonplugin

Page 18: Web debug and node.js inspection Debug the web everywhere

Standard website development

JavaScript

HTML/CSS

@meulta

Page 19: Web debug and node.js inspection Debug the web everywhere

Vorlon.js plugin

Data collectionJavaScript

Plugin DisplayHTML/CSS

Vorlon.js serverNode.js / Socket.io

Vorlon.js Dashboard Debugged website

Data receiverJavaScript

@meulta

Page 20: Web debug and node.js inspection Debug the web everywhere

mydevice.ioLet’s code a simple plugin

@meulta

Page 21: Web debug and node.js inspection Debug the web everywhere

Next steps

• Debug node.js server code

• Have a SaaS version of Vorlon.js

• Vorlon.js in production

• BrowserSync integration

• And more!

@meulta

Page 22: Web debug and node.js inspection Debug the web everywhere

Resources

http://vorlonjs.io

http://bit.ly/pourquoi-vorlon

http://bit.ly/vorlonplugin

@meulta