Tekpub - Mastering Sinatra Tutorial
Rob Conery walks you through Sinatra, the lightweight Ruby web framework. Along the way you’ll get to know Vim, HAML, and MongoDB as Rob rebuilds the MVC Music Store completely with Sinatra. "Understanding Rack" is bundled with this production and is Episode 2.
1 - Introduction
In this episode Rob shows you what Sinatra is and why you should care. Next comes installation - Rob walks you through setting things up on Windows using E Text Editor and Cygwin
2 - Rack
This episode is a port of our current Rack production. If you want to use Sinatra, you need to understand what Rack is and how it works.
3 - Sinatra Music Store: Iteration 1
In this episode we go over the basics of building an application with Sinatra starting with Vim, HAML, and Rack middleware.
4 - Importing Data with Rake and Nokogiri
In this episode I pull in the Chinook sample data from an XML file, parsing it with Nokogiri inside of a Rake task. In addition I build out the Sinatra Music Store catalog pages (Genre and Album)
5 - RSpec
In this episode I kick up a Customer application and work in RSpec - a Behavior-Driven Design tool for Ruby applications. I then build out the shopping cart using split-window Vim coolness, with Autotest and Growl.
6 - URLs
In this episode I talk about URLs - creating helpers to work with them in your views, how to handle parameters gracefully, how to deal with a situation when more than one route matches your request, and how to deal with 404s.
7 - Infrastructure
In this episode I show you how to use helpers and extensions with Sinatra, setting up authentication, logging, and more.
8 - Deployment
In this, the final episode of the series, Rob ties up the Sinatra Music Store application and deploys to Heroku, showing you how to setup your database at MongoHQ and get your gems in order with Bundler. The series wraps up with a discussion on when it's appropriate to use Sinatra vs. Rails or other frameworks.
Download from FileSonic:
http://www.filesonic.com/file/500749761/Tekpub.Mastering.Sinatra.part1.rar
http://www.filesonic.com/file/500759231/Tekpub.Mastering.Sinatra.part2.rar
http://www.filesonic.com/file/500772841/Tekpub.Mastering.Sinatra.part3.rar
http://www.filesonic.com/file/501299171/Tekpub.Mastering.Sinatra.part4.rar
Download from FileServe:
http://www.fileserve.com/file/HvbEVKv/Tekpub.Mastering.Sinatra.part1.rar
http://www.fileserve.com/file/929Gur7/Tekpub.Mastering.Sinatra.part2.rar
http://www.fileserve.com/file/89uueBE/Tekpub.Mastering.Sinatra.part3.rar
http://www.fileserve.com/file/NTAGAkf/Tekpub.Mastering.Sinatra.part4.rar
Download from BitShare:
http://bitshare.com/files/7aiz1ygx/Tekpub.Mastering.Sinatra.part1.rar.html
http://bitshare.com/files/731994xa/Tekpub.Mastering.Sinatra.part2.rar.html
http://bitshare.com/files/t2lfrnat/Tekpub.Mastering.Sinatra.part3.rar.html
http://bitshare.com/files/bmwetj0k/Tekpub.Mastering.Sinatra.part4.rar.html
0 komentar:
Post a Comment