17
Server-Side Server-Side JavaScript JavaScript All the cool kids are All the cool kids are doing it! doing it! Ian Selby Web Developer, Gen X Design & Aptana www.gen-x-design.com www.aptana.com

Server-Side JavaScript

Embed Size (px)

DESCRIPTION

Introduction to Server-Side JavaScript.

Citation preview

Page 1: Server-Side JavaScript

Server-Side JavaScriptServer-Side JavaScriptAll the cool kids are doing it!All the cool kids are doing it!

Ian SelbyWeb Developer, Gen X Design & Aptanawww.gen-x-design.comwww.aptana.com

Page 2: Server-Side JavaScript

About MeAbout Me

• Web Developer at AptanaWeb Developer at Aptana• 7 Years in the industry7 Years in the industry• Started with enterprise PHP developmentStarted with enterprise PHP development• Relocated to the Bay Area to hone my skillsRelocated to the Bay Area to hone my skills• Now develop applications almost exclusively Now develop applications almost exclusively

in JavaScriptin JavaScript

But enough about me…But enough about me…

Page 3: Server-Side JavaScript

and, why you should be excited about it.and, why you should be excited about it.

Page 4: Server-Side JavaScript

Server-Side JavaScript (SSJS) is…Server-Side JavaScript (SSJS) is…

Page 5: Server-Side JavaScript

Server-Side JavaScript (SSJS) is…Server-Side JavaScript (SSJS) is…

Page 6: Server-Side JavaScript

Server-Side JavaScript (SSJS) is…Server-Side JavaScript (SSJS) is…

Page 7: Server-Side JavaScript

However,However, This opens the door for some really cool things…This opens the door for some really cool things…

• Access to databasesAccess to databases• Access to the file systemAccess to the file system• Access to system commandsAccess to system commands• Server-side DOMServer-side DOM• File uploadsFile uploads• Server-side XHRsServer-side XHRs• and (of course), much more…and (of course), much more…

Page 8: Server-Side JavaScript

… … beyond the fact I said you should.beyond the fact I said you should.

Page 9: Server-Side JavaScript

… … and JavaScript is a darn cool and JavaScript is a darn cool language!language!

• You’re already a JavaScript Ninja!You’re already a JavaScript Ninja!• Your current skills become much more valuable.Your current skills become much more valuable.• You can support non-JavaScript clients.You can support non-JavaScript clients.• There aren’t any cross-browser issues on the server.There aren’t any cross-browser issues on the server.• You don’t really need to learn anything new.You don’t really need to learn anything new.

Because…Because…

Page 10: Server-Side JavaScript
Page 11: Server-Side JavaScript

There are two main There are two main players…players…

Page 12: Server-Side JavaScript

www.mozilla.com/rhinowww.mozilla.com/rhino

• Open-sourceOpen-source• JavaScript for JavaJavaScript for Java• Developed by MozillaDeveloped by Mozilla• Runs on the JVMRuns on the JVM• Allows binding to Java objects and librariesAllows binding to Java objects and libraries• Allows you to run JS from the shellAllows you to run JS from the shell

RhinoRhino

Page 13: Server-Side JavaScript

www.aptana.com/jaxerwww.aptana.com/jaxer

• Open-sourceOpen-source• Based on the Mozilla Firefox 3 code baseBased on the Mozilla Firefox 3 code base• Developed by AptanaDeveloped by Aptana• Runs in Apache or JettyRuns in Apache or Jetty• Provides a server-side DOM and browserProvides a server-side DOM and browser• Works with existing JavaScript librariesWorks with existing JavaScript libraries• Plays well with existing server-side languagesPlays well with existing server-side languages

JaxerJaxer

Page 14: Server-Side JavaScript

Some Other SSJS Projects…Some Other SSJS Projects…

Page 15: Server-Side JavaScript

In Jaxer… I don’t know Java!In Jaxer… I don’t know Java!

Page 16: Server-Side JavaScript
Page 17: Server-Side JavaScript

That’s It!That’s It!For more information, and to ask any For more information, and to ask any

questions, visit my blog:questions, visit my blog:

www.gen-x-design.comwww.gen-x-design.com

Source code for all examples will be Source code for all examples will be posted there in the near futureposted there in the near future

To download Jaxer, visit www.aptana.com/jaxer