万本电子书0元读

万本电子书0元读

顶部广告

Ruby on Rails Web Mashup Projects电子书

售       价:¥

12人正在读 | 0人评论 9.8

作       者:Chang Sau Sheong

出  版  社:Packt Publishing

出版时间:2008-04-24

字       数:339.9万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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. 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.
目录展开

Ruby on Rails Web Mashup Projects

Table of Contents

Ruby on Rails Web Mashup Projects

Credits

About the Author

Acknowledgements

About the Reviewer

Preface

What This Book Covers

Conventions

Reader Feedback

Customer Support

Downloading the Example Code for the Book

Errata

Questions

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?

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

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

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

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

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

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

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

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部