0
Server-side JavaScript For The Rest Of Us Kyle Simpson @getify http://getify.me
Server-side JavaScript node.js Middle-End (BikechainJS)
Pep Talk
Wait... you're not using server-side JavaScript in  all  your apps?
You haven't replaced Apache with Node.js yet?
You still write PHP/Java/RoR/ Python/C# code on the server?
It's OK. You're just like the rest of us.
Server-side JavaScript Cheat Guide
It's all been done before
JavaScript: engine != environment
You still need a web server* *unless your SSJS environment  is  a web server
 
node.js is a special type of JavaScript environment
socket/network/web server  +  application server
Alternate usage patterns
reverse proxy https://github.com/nodejitsu/node-http-proxy
backend web service php.js? http://phpjs.org
side (bypass) service example: http://goLook.at http://jsno.de/presentations/jsconf2011/#slide6
Middle-End Architecture In between the front-end and the back-end is... the  Middle-End
Middle-End? templating, URL routing, data validation, data formatting, ajax, caching, cookies/headers
 
 
Why? The Middle-End is meant to bring order to the general dis-order of today's web stack architectures
CVC (vs. MVC) CVC (Clients-Views-Controllers) is an alternate pattern for web application architecture that leverages the ...
 
 
CVC Middle-End is  not  a framework or library... it's the removal of abstractions to expose and control what's already th...
Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.    —  Antoine ...
Middle-End patterns
Wordpress (or any CMS) http://wordpress.org/extend/plugins/json-api/
BikechainJS http://bikechainjs.com
http://shortie.me https://github.com/getify/shortie.me
Server-side JavaScript FTW
Questions?
http://nodejs.org   Kyle Simpson @getify http://getify.me http://bikechainjs.com  http://middleend.com http://start.middle...
Upcoming SlideShare
Loading in...5
×

Server-side JavaScript for the rest of us

2,356

Published on

Exploring patterns for using server-side JavaScript along side existing (non-JavaScript) application architectures. In other words, how to use *some* SSJS without rewriting your entire app in JS.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,356
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
27
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Server-side JavaScript for the rest of us"

  1. 1. Server-side JavaScript For The Rest Of Us Kyle Simpson @getify http://getify.me
  2. 2. Server-side JavaScript node.js Middle-End (BikechainJS)
  3. 3. Pep Talk
  4. 4. Wait... you're not using server-side JavaScript in all your apps?
  5. 5. You haven't replaced Apache with Node.js yet?
  6. 6. You still write PHP/Java/RoR/ Python/C# code on the server?
  7. 7. It's OK. You're just like the rest of us.
  8. 8. Server-side JavaScript Cheat Guide
  9. 9. It's all been done before
  10. 10. JavaScript: engine != environment
  11. 11. You still need a web server* *unless your SSJS environment is a web server
  12. 13. node.js is a special type of JavaScript environment
  13. 14. socket/network/web server + application server
  14. 15. Alternate usage patterns
  15. 16. reverse proxy https://github.com/nodejitsu/node-http-proxy
  16. 17. backend web service php.js? http://phpjs.org
  17. 18. side (bypass) service example: http://goLook.at http://jsno.de/presentations/jsconf2011/#slide6
  18. 19. Middle-End Architecture In between the front-end and the back-end is... the Middle-End
  19. 20. Middle-End? templating, URL routing, data validation, data formatting, ajax, caching, cookies/headers
  20. 23. Why? The Middle-End is meant to bring order to the general dis-order of today's web stack architectures
  21. 24. CVC (vs. MVC) CVC (Clients-Views-Controllers) is an alternate pattern for web application architecture that leverages the Middle-End
  22. 27. CVC Middle-End is not a framework or library... it's the removal of abstractions to expose and control what's already there... better
  23. 28. Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. — Antoine de Saint-Exupery
  24. 29. Middle-End patterns
  25. 30. Wordpress (or any CMS) http://wordpress.org/extend/plugins/json-api/
  26. 31. BikechainJS http://bikechainjs.com
  27. 32. http://shortie.me https://github.com/getify/shortie.me
  28. 33. Server-side JavaScript FTW
  29. 34. Questions?
  30. 35. http://nodejs.org Kyle Simpson @getify http://getify.me http://bikechainjs.com http://middleend.com http://start.middleend.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×