Ruby on Rails Web Mashup Projects


Ruby on Rails Web Mashup Projects
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$16.20
save 40%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$61.19
save 15%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • Learn about web mashup applications and mashup plug-ins
  • Create practical real-life web mashup projects step by step
  • Access and mash up many different APIs with Ruby and Ruby on Rails

Book Details

Language : English
Paperback : 272 pages [ 235mm x 191mm ]
Release Date : April 2008
ISBN : 1847193935
ISBN 13 : 9781847193933
Author(s) : Chang Sau Sheong
Topics and Technologies : All Books, Web Development, Open Source


Table of Contents

Preface
Chapter 1: Introduction to Web Mashups
Chapter 2: 'Find closest' mashup plugin
Chapter 3: Proxy mailing list mashup plugin
Chapter 4: Book sales tracking mashup plugin
Chapter 5: Job board mashup application
Chapter 6: Trip organizer mashup application
Chapter 7: Ticketing mashup application
Chapter 8: Expenses claims mashup plugin
Index
  • Chapter 1: Introduction to Web Mashups
    • Web mashups
      • Ruby and Ruby on Rails
    • Types of web mashups
    • What can I do with web mashups?
      • As a new breed of applications
      • Access large sets of external sources
      • Innovate and create extra value for your application
      • Save on development and maintenance
      • Leverage on and integrate common and widely available external applications
    • Things to watch out for when doing web mashups
      • Unreliable external APIs
      • Commercial dependency
      • Losing your users
    • How this book works
      • What does it do?
      • Domain background
      • Requirements overview
      • Design
      • Mashup APIs on the menu
      • What we will be doing
      • Summary
    • Ready?
  • Chapter 2: 'Find closest' mashup plugin
    • What does it do?
    • Building a kiosk locator feature for your site
    • Requirements overview
    • Design
    • Mashup APIs on the menu
      • Google Maps
      • Yahoo Maps
      • Geocoder.us
      • Geocoder.ca
      • Hostip.info
      • GeoKit
        • Configuring GeoKit
        • Getting an application ID from Yahoo
        • Getting a Google Maps API key from Google
        • Configuring evironment.rb
      • YM4R/GM
    • What we will be doing
      • Creating a new Rails project
      • Installing the Rails plugins that will use the various mashup APIs
      • Configuring database access and creating the database
      • Creating scaffolding for the project
      • Populating kiosk locations with longitude and latitude information
        • Populate the database with sample data
        • Bulk adding of longitude and latitude
      • Adding longitude and latitude during kiosk creation entry
      • Creating the find closest feature
      • Displaying kiosks on Google Maps
    • Summary
  • Chapter 3: Proxy mailing list mashup plugin
    • What does it do?
    • Building a proxy mailing list feature for your website
    • Requirements overview
    • Design
      • Define messages
      • Get contacts and customized message data
      • Send messages
        • Sending SMS messages
        • Sending fax messages
    • Mashup APIs on the menu
      • Google Spreadsheets
      • EditGrid
      • Clickatell
      • Interfax
      • Net::HTTP
    • What we will be doing
      • Creating a new Rails project
      • Configuring the database access and creating the database
      • Creating standard scaffolding
      • Allowing the marketing people to create the message templates
      • Allowing the reseller to provide contacts data through a remote link
        • Uploading to and publishing from Google Spreadsheets
        • Uploading to and publishing from EditGrid
      • Creating the rake script to send messages at regular intervals
      • Parsing data from the online spreadsheet
      • Sending a fax with Interfax
      • Sending an SMS through Clickatell
      • Sending an email through ActionMailer
      • Customizing text messages according to the individual recipient
    • Using the mashup
    • Summary
  • Chapter 4: Book sales tracking mashup plugin
    • What does it do?
    • A book sales tracking and shopping cart feature
    • Requirements overview
    • Design
      • Provide information
      • Track sales ranking with a chart
      • Show customer reviews
      • Provide a shopping cart
      • Allow visitors to buy related books
    • Mashup APIs on the menu
      • Amazon E-Commerce Services API
        • Registering for an Amazon Web Service access key ID
        • Registering as an Amazon Associate
      • Amazon ECS Ruby library
      • Sparklines web service
    • What we will be doing
      • Creating a new Rails project
      • Installing the Amazon ECS Ruby library
      • Creating the books controller
      • Creating the Amazon Rails library
      • Creating the sidebar
      • Getting customer reviews
      • Getting the daily sales ranking
      • Displaying the sales ranking sparkline
      • Creating a shopping cart
      • Adding similar books to the shopping cart
    • Summary
  • Chapter 5: Job board mashup application
    • What does it do?
    • Job board
    • Requirements overview
    • Design
    • Mashup APIs on the menu
      • Facebook
        • Facebook Platform
        • RFacebook
      • Google Maps
      • Indeed
      • Technorati
      • Daylife
      • Net::HTTP
      • XmlSimple
    • What we will be doing
      • Acquire candidates through Facebook
      • Search for jobs through Indeed
      • Display jobs in Google Maps
      • Search and display job news from Daylife
      • Search and display job stories from Technorati
      • Acquiring candidates through Facebook
        • Creating a Rails application
        • Creating a Facebook application
        • Installing and configuring RFacebook
        • Extracting the Facebook user profile
        • Displaying the user profile and creating the search form
        • Deploying and configuring the Facebook application
      • Searching for jobs through Indeed
        • Creating the search action
        • Parsing and displaying the search results
      • Display jobs in Google Maps
        • Displaying the location of the jobs on the map
        • Creating a link on each job to show the news and blog articles
      • Searching and displaying news from Daylife
        • Searching for news on the company
      • Searching and displaying blog articles from Technorati
        • Searching for blog entries on the company
    • Summary
  • Chapter 6: Trip organizer mashup application
    • What does it do?
    • Requirements overview
    • Design
    • Mashup APIs on the menu
      • Google Maps
      • FUTEF
      • WebserviceX Currency Converter
      • Yahoo Maps Geocoding API
      • WeatherBug
      • Kayak
      • GeoNames
      • Flickr
      • Hostip.info
      • Open URI
    • What we will be doing
      • Creating a Rails application
      • Creating the basic Location object
      • Creating a search form
      • Creating the online map
      • Creating the tabs for the information
      • Getting information from Wikipedia
      • Getting places information
      • Getting hotel information
      • Getting weather information
      • Displaying pictures of the location
      • Showing currency exchange rate
      • Showing remote location time compared with local time
    • Showing nice exception pages
    • Summary
  • Chapter 7: Ticketing mashup application
    • What does it do?
    • Online event ticketing
    • Requirements overview
    • Design
    • Mashup APIs on the menu
      • PayPal
        • Website Payment Pro
        • PayPal Sandbox
      • Ruby-PayPal library
      • Google Calendar
      • GoogleCalendar library
      • Clickatell
    • What we will be doing
      • Creating a Rails application
      • Creating the flow for the ticketing application
      • Integrating with PayPal for payment
      • Integrating with Google Calendar
      • Integrating with Clickatell
    • Summary
  • Chapter 8: Expenses claims mashup plugin
    • What does it do?
    • Salary and expense claims
    • Requirements overview
    • Design
    • Mashup APIs on the menu
      • PayPal
        • Mass Payment
        • PayPal Sandbox
      • Google
        • Google Account Authentication
        • Google Data APIs
        • Google Document Data List APIs
        • Google Spreadsheet Data APIs
      • Ruby-PayPal library
      • Acts_as_state_machine plugin
      • XmlSimple
    • What we will be doing
      • Creating a Rails application
      • Setting up the database
      • Creating the Payment and Claim Item scaffolds
      • Modifying Payment and creatomg subclasses
      • Creating the Google API access library
      • Creating the Manager class and its controller and views
      • Creating the expense claims parsing rake script
      • Creating the mass payment rake script
      • Modifying the Payment and Claim Item controllers
    • How it works all together
    • Summary

Chang Sau Sheong

Chang Sau Sheong has more than 12 years experience in software application development and has spent much of his career in web and Internet-based applications. He has a wide range of experience in banking payment-related as well as Internet-based e-commerce software. Currently he is the Director of Software Development of a 50+ strong software development team in Welcome Real-time, a multi-national payment/loyalty software company based in France and Singapore.

Sau Sheong hails from tropical Malaysia but has spent most of his adult and working life in sunny Singapore, where he shares his spare time between enthusiastically writing software and equally enthusiastically playing Nintendo Wii with his wife and son.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Ruby on Rails Web Mashup Projects +    Microsoft Dynamics NAV 2009 Programming Cookbook =
50% Off
the second eBook
Price for both: $44.10

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

You will learn what a mashup application and a mashup plug-in are and how you can effectively use mashup technology to do more than just Web 2.0 startups. You will also learn how to use Ruby and Ruby on Rails to combine, mix, and match up nearly 30 mashup APIs from small to really large scale, and from completely free to commercial to:

  • Map a fleet of kiosks in an online map
  • Send marketing messages through e-mail, SMS, and fax
  • Sell and track the sales of books
  • Search for jobs through a Facebook application
  • Show all sorts of information on a geographic location
  • Buy and pay for movie tickets then post the screening information in an online calendar
  • Apply, approve, and pay for employee expense claims

In Detail

A web mashup is a new type of web application that uses data and services from one or more external sources to build entirely new and different web applications. Web mashups usually mash up data and services that are available on the Internet— freely, commercially, or through other partnership agreements. The external sources that a mashup uses are known as mashup APIs.

This book shows you how to write web mashups using Ruby on Rails— the new web application development framework. The book has seven real-world projects and each project is described in a methodical step-by-step way, showing how you can write a web mashup from the ground up.

APIs covered in the book

This book covers: Google Maps API, Yahoo geocoding services, Geocoder.us geocoding services, Geocoder.ca geocoding services, Hostip.info, Google Spreadsheet, EditGrid, Clickatell, Interfax, Amazon ECS, Sparklines, Facebook, Indeed, DayLife, Technorati, Futef, WebserviceX Currency Convertor, Weatherbug, Google Bases, Geonames, Flickr, Paypal, Google Calendar, Google Account Authentication, Google Data, and Google Spreadsheet Data.

Use Ruby and Ruby on Rails to create seven practical mashup projects following step-by-step instructions.

Approach

This book is project-based. The format of each project is similar, with a statement of the project, discussion of the main protocols involved, an overview of the API, and then complete code for building the project. You will be led methodically through concrete steps to build the mashup, with asides to explain the theory behind the code.

Who this book is for

This book is for Ruby on Rails developers who want to expand the features of their site by consuming remote external data and services. Basic knowledge of Ruby on Rails programming is required but you need not have any experience of any of the APIs used.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software