Sinatra Intro

958 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
958
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Sinatra Intro

    1. 1. SinatraPractical Introduction
    2. 2. Gregory MostizkyRuby, Rails for last 2 yearsJava before thatC++ even before@Kontera
    3. 3. Ground RulesIt’s ok to interrupt me“Just-in-time” questionsDon’t need to write down https://github.com/gregorymostizky/sinatra-intro
    4. 4. Sinatra?
    5. 5. Sinatra is not RailsRails is big and opinionatedrails create ...You get routes, orm, js integration, tons of utilities, testsets ....
    6. 6. Sinatra is.. A DSL for quickly creating web applications Extremely light weight Doesn’t force any gem/framework but... Plays nicely with most everything DIY paradise?
    7. 7. Sinatra good for... Good for.. Small apps AJAXified apps Google Home Page New Twitter interface Disqus
    8. 8. Not so good for.. Google Adwords CNN Rule of Thumb - if you have more than few pages/ actions - use rails otherwise you are going to re- implement it anyway
    9. 9. Sinatra At Kontera Internal tools Data access Monitoring External Web Services (async flavor)
    10. 10. 01 Hello World
    11. 11. Simplest applicationRunning with rubyDemo in browser
    12. 12. 02 Routes
    13. 13. Different verbsParameters in routesRoutes evaluation order passRegexp routes
    14. 14. 03 Returns
    15. 15. StringArrayRedirectsImplicit body status
    16. 16. 04 Monitor App
    17. 17. SessionsFilters (before, after)Views
    18. 18. 05 Monitor w/ Reports
    19. 19. post methodscurl -XPOST
    20. 20. 06 Drilldown
    21. 21. Multiple ViewsStatic Files
    22. 22. 07 Rack
    23. 23. config.rubundler & lib dirattachmentsjsontesting
    24. 24. Rack overviewConnects between ruby web servers and frameworksServers: webrick, mongrel, thin, passenger, glassfish...Frameworks: Rails3, Sinatra ...
    25. 25. Middleware Logging, Exception Pages, Reloading Error Pages, Static Files, URL manipulation Request/Response access, Testing Security, Sessions, JS minify ....
    26. 26. DeploymentStandard ruby deployment techniquesFront end proxy - apache, nginx, haproxyMultiple Runners behind it
    27. 27. ConclusionLittle framework that canExplore on your ownMake web services out of anythingAJAXy UIScale up via async_sinatra

    ×