Lecture 12 Rails 169 Review Slides Topics SaaSSaaS Readings: SaaS book Ch February CSCE 740 Software Engineering
– 2 – CSCE 740 Spring 2014 Tools - Last Time Ruby Basics Ruby Regexp New Test 1 Revisit Chapter 2 Classes Objects Rails xxx Next Time:
– 3 – CSCE 740 Spring github.com:saasbook/courseware
– 4 – CSCE 740 Spring 2014 SaaS Architecture Review Slides 1.29 Deployments 2.37 each entity own ModelView&Contr 3.48 Routes 4.??? A trip through rails apps 6:22 0 to CRUD Every model Knows how to CRUD itself Engineering Software as a Service, Patterson & Fox
– 5 – CSCE 740 Spring 2014 Developer environment vs. medium- scale deployment Webric k rack SQLite adapter Rails library file.sqlite3 Developer MySQL thin rack MySQL adapter Rails library thin rack MySQL adapter Rails library thin rack MySQL adapter Rails library Apache w/mod_rails + caching mode Page cache Medium-scale deployment HTTP servers & static asset caches PostgreSQ L Database cache Database cache “Dynos” running apps Large-scale curated deployment, e.g. Heroku
– 6 – CSCE 740 Spring 2014 Each entity has a model, controller, & set of views 6 Moviegoers Controller Moviegoer Reviews Controller Review Movies Controller Movie
– 7 – CSCE 740 Spring 2014 Routes In MVC, each interaction the user can do is handled by a controller action Ruby method that handles that interaction A route maps to controller action 7 RouteAction GET /movies/3 Show info about movie whose ID=3 POST /movies Create new movie from attached form data PUT /movies/5 Update movie ID 5 from attached form data DELETE /movies/5 Delete movie whose ID=5
– 8 – CSCE 740 Spring 2014 Engineering Software as a Service, Patterson & Fox
– 9 – CSCE 740 Spring 2014
– 10 – CSCE 740 Spring 2014
– 11 – CSCE 740 Spring 2014
– 12 – CSCE 740 Spring 2014
– 13 – CSCE 740 Spring 2014
– 14 – CSCE 740 Spring 2014