• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Nuxeo and JavaScript
 

Nuxeo and JavaScript

on

  • 1,201 views

Thierry Delprat gave his thoughts about JavaScript as a language and explained how it's currently used and will be use in the Nuxeo Platform

Thierry Delprat gave his thoughts about JavaScript as a language and explained how it's currently used and will be use in the Nuxeo Platform

Statistics

Views

Total Views
1,201
Views on SlideShare
995
Embed Views
206

Actions

Likes
1
Downloads
4
Comments
1

7 Embeds 206

http://www.nuxeo.com 181
http://cloud.feedly.com 9
http://blogs.nuxeo.com 9
http://www.feedspot.com 2
http://plus.url.google.com 2
http://summary 2
http://newsblur.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • See the new Nuxeo JavaScript Client : http://doc.nuxeo.com/x/74sZAQ
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Nuxeo and JavaScript Nuxeo and JavaScript Presentation Transcript

    • Nuxeo Platform JavaScript in Nuxeo Platform Thierry Delprat 1
    • I am probably too old to JavaScript 2
    • Nuxeo Platform vs JavaScript Nuxeo is not really a JavaScript Shop ● we used to be a Python Shop ● we are now 100% Java Platform ● ● Strong typing ● ● OSGi deployment and plugin model Contribute and extend with Java Classes Server side MVC model ● Seam (pre-CDI) / JSF 3
    • Nuxeo Platform vs JavaScript ● However this is changing, because ● You (probably) want to write JavaScript – Coding in Sublime Text is so much cooler than in Eclipse ● ● ● Html5 and Browser are actually a nice UI Platform – ● Light dev environment Quick coding/deploy/test cycles Back to the Client/Server days ! Some Html5 / JavaScript MVC frameworks rocks – – AngularJS is a good example A lot of nice Html5/JS Widgets 4
    • Nuxeo Platform vs JavaScript ● Bonus ● JavaScript makes coding easy ?! – – ● People are scared to write Java code (they should not) People are not scared to write JavaScript code (sometimes, they should, at least for the maintenance) Use JavaScript without writing actual JavaScript – – CoffeeScript Dart 5
    • Adapting Nuxeo Platform to JS ● Make room for JavaScript widgets ● ● Extend JSF framework with simple JS Widgets Expose JavaScript API ● ● ● REST API/Client lib Allow JS developers to leverage Nuxeo Services Build client SDK for Html5/JS framework ● AngularJS, Dart/Polymer… ● Use Nuxeo Platform as a PaaS 6
    • Nuxeo Widgets and JavaScript ● JSF/Facelet has a nice MVC Model ● ● We added an abstract Widget Model ● ● ● Actually pretty close to what AngularJS proposes But most people have a hard time building custom widgets (remember Java is scary !) But most people are happy to add custom JavaScript widgets We built an hybrid model ● JSF handles server side validation and state management ● JS handles client side display and Ajax refresh ● We use REST API to interact with the server 7
    • Examples ● Select2 integration ● JQuery widgets integration 8
    • Nuxeo Platform API ● Nuxeo Platform exposes 2 sets of http API ● Resource API – ● Command (RPC) API – ● ● CRUD on Document, Tasks, Workflows, Users ... Execute command on an object JSON-RPC Marshaling nuxeo.js ● Wrap Nuxeo http API in a JavaScript client ● Associated with – JavaScript shell – Node.js shell – Unit tests 9
    • Examples ● Nuxeo Platform Explorer ● Nuxeo JavaScript Shell 10
    • Buidling JS Apps with Nuxeo Platform ● Nuxeo.io ● Hosting the content repository – ● Hosting the Back Office : Nuxeo CAP – ● Provide configurable management UI Hosting the configuration IDE : Nuxeo Studio – ● Provide Storage, Services and API Define business model, workflows, custom API Hosting JavaScript IDE – Build client side using Nuxeo AngularJS SDK 11
    • Provision Platform Nuxeo Cloud Controler Business Model Nuxeo Studio Build WebApp Nuxeo Web IDE nuxeo.io 12
    • Examples 13
    • Some links ● Nuxeo API ● ● ● https://github.com/nuxeo/nuxeo-rest-api http://doc.nuxeo.com/display/NXDOC/REST+API nuxeo.js & Nuxeo javascript shell ● ● https://github.com/tiry/nuxeo-automation-jsshell Nuxeo AngularJS sample ● ● https://github.com/dmetzler/nuxeo-slideshow-sample ● ● https://github.com/nuxeo/nuxeo-angular-sample http://www.nuxeo.com/fr/resource-center/webinar/angularjs#recording Nuxeo Studio trial ● https://connect.nuxeo.com/nuxeo/site/connect/trial/form 14