Grab your we are going to Code here.
But coding is not mandatory, you can just listen and watch.
If you want to code, you will need 0.10.40 <= node < 6 and a laptop with any editor.
While you wait, then install oc: [sudo] npm i -g oc
Coding, technology, conferences
London, UK
OpenTable
<html>
<body>
...
<oc-component href="//oc-registry.com/component/1.X.X/?a=b">
<div>hello John Doe</div>
</oc-component>
...
<script src="//oc-registry.com/oc-client/client.js">
</script>
</body>
</html>
$ curl https://oc-registry.com/component/1.X.X/?a=b
{
"href": "https://oc-registry.com/component/1.X.X/?a=b",
"version": "1.0.0",
"requestVersion": "1.X.X",
"html": "<div>hello John Doe</div>",
"type": "oc-component",
"renderMode": "rendered"
}
$ curl https://oc-registry.internal.com/header/1.X.X/?userType=Admin&country=UK -H Accept-Language:ja-JP
{
"href": "http://components-789/header/1.X.X?userType=Admin&country=UK",
"html": "<div><img src=\"//srs.opentable.com/logo.jpg\" />...</div>"
}
$ npm install -g oc
$ mkdir components && cd components
$ oc init test-component jade
$ echo 'div this is my component' > test-component/template.jade
$ oc dev . 3030
$ oc preview http://localhost:3030/test-component
$ oc registry add http://oc-registry.herokuapp.com
$ oc publish /test-component
$ oc preview http://oc-registry.herokuapp.com/test-component
// template.jade
img(src=staticPath+'img/img.jpg')
// server.js
module.exports.data = function(context, cb){
cb(null, { staticPath: context.staticPath });
};
Enables people to create new components independently and publish them
Flexibility (unopinionated)
Granular ownership
Resiliency
Performance
Robustness
Serve as framework for experimenting and A/B testing new ideas in the front-end
github.com/matteofigus/awesome-oc
follow me on twitter - @matteofigus