Деталі електронної книги

Cloning Internet Applications with Ruby. Make clones of some of the best applications on the Web using the dynamic and object-oriented features of Ruby

Cloning Internet Applications with Ruby. Make clones of some of the best applications on the Web using the dynamic and object-oriented features of Ruby

Chang Sau Sheong

Eлектронна книга
Most users on the Internet have a few favorite Internet web applications that they use often and cannot do without. These popular applications often provide essential services that we need even while we don’t fully understand its features or how they work. Ruby empowers you to develop your own clones of such applications without much ordeal. Learning how these sites work and describing how they can be implemented enables you to move to the next step of customizing them and enabling your own version of these services.This book shows the reader how to clone some of the Internet's most popular applications in Ruby by first identifying their main features, and then showing example Ruby code to replicate this functionality.While we understand that it connects us to our friends and people we want to meet up with, what is the common feature of a social network that makes it a social network? And how do these features work? This book is the answer to all these questions. It will provide a step-by-step explanation on how the application is designed and coded, and then how it is deployed to the Heroku cloud platform. This book’s main purpose is to break up popular Internet services such as TinyURL, Twitter, Flickr, and Facebook to understand what makes it tick. Then using Ruby, the book describes how a minimal set of features for these sites can be modeled, built, and deployed on the Internet.
  • Cloning Internet Applications with Ruby
    • Table of Contents
    • Cloning Internet Applications with Ruby
    • Credits
    • About the Author
    • Acknowledgement
    • About the Reviewers
    • Preface
      • What this book covers
      • What you need for this book
      • Who this book is for
      • Conventions
      • Reader feedback
      • Customer support
        • Errata
        • Piracy
        • Questions
    • 1. Cloning Internet Applications
      • Who would find this book useful
      • Popular Internet applications
      • Technologies used
        • Sinatra
          • Installing
          • Routes
          • Splitting a route into multiple files
          • Redirection
          • Filters
          • Static pages
          • Views
          • Layouts
          • Helpers
          • Error handling
        • DataMapper
          • Installing
          • Connecting to the database
          • Creating models
          • Defining associations between models
            • One-to-one
            • One-to-many
            • Many-to-many
          • Creating the database tables
          • Finding records
        • Haml
          • Installing
          • Using Haml
          • Haml and Ruby
      • How this book works
      • Caveat
      • Summary
    • 2. URL Shorteners Cloning TinyURL
      • All about URL shorteners
      • Main features
      • Designing the clone
        • Creating a short URL for each long URL
        • Automatically redirecting from a short URL to a long URL
        • Providing a customized short URL
        • Filtering undesirable words out
          • Previewing the long URL
          • Providing statistics
      • Technologies and platforms used
        • Sinatra
        • Haml
        • DataMapper
        • Blueprint CSS
        • Mashups
          • Google Chart API
          • HostIP
        • Heroku
      • Building the clone
        • Data model
          • Url
          • Link
          • Visit
        • Application flow
      • Deploying the clone
      • Summary
    • 3. Microblogs Cloning Twitter
      • All about microblogs
        • Twitter
          • Why Twitter?
            • Simple
            • A means to have public conversation
            • Fan versus friend
            • Understanding user behavior
            • Easy to share through text messaging
            • Easy to access through multiple devices and applications
      • Main features
      • Designing the clone
        • Posting statuses
        • Following users
        • Sending publicly directed messages
        • Sending privately directed messages
        • Re-tweeting
        • Public timeline
        • API
        • Authentication, access control, and user management
          • Third party authentication and access control
          • Authentication and user management
        • Scalability and stability
      • Technologies and platforms used
        • JSON
        • Mashups
          • RPX
          • Google ClientLogin
          • Gravatar
          • TinyURL
        • Heroku
      • Building the clone
        • Modeling the data
          • User
          • Status
        • Building the application flow
          • Authenticating and managing users
          • Displaying and updating statuses
          • Sending and displaying direct messages
          • Showing and forming relationships
        • Implementing the API
      • Deploying the clone
        • Deploying locally
        • Deploying to the cloud
      • Summary
    • 4. Photo Sharing Cloning Flickr
      • All about photo-sharing services
        • Flickr
      • Main features
      • Designing the clone
        • Authentication, access control, and user management
        • Albums and photos
        • Uploading and storing photos
          • Filesystem
          • Database
        • Comments
        • Annotations
        • Editing photos
        • Friendly URLs
        • Sharing photos
      • Technologies and platforms used
        • Mashups
          • RPX
          • Gravatar
        • Pixlr
        • Amazon Web Services Simple Storage Service (S3)
        • RightAWS
      • Building the clone
        • Configuration
        • Modeling the data
          • User
          • Album
          • Photo
          • Annotation
          • Comment
        • Building the application flow
          • Authenticating and managing users
          • Landing page
          • Managing albums
          • Uploading photos
          • Displaying photos
          • Annotating photos
          • Commenting on photos
          • Editing photos
          • Sharing photos
      • Deploying the clone
        • Deploying on a server
      • Summary
    • 5. Social Networking Services Cloning Facebook 1
      • All about social networking services
        • Facebook
      • Main features
        • User
        • Community
        • Content sharing
      • Designing the clone
        • Authentication, access control, and user management
        • Status updates
        • User activity feeds and news feeds
        • Friends list and inviting users to join
        • Posting to the wall
        • Sending messages
        • Attending events
        • Forming groups
        • Commenting on and liking content
        • Sharing photos
        • Blogging with pages
      • Technologies and platforms used
        • Mashups
          • Facebook Connect
      • Building the clone
        • Configuring the clone
        • Modeling the data
          • User
          • Request
          • Message
          • Album
          • Photo
          • Status
          • Group
          • Event
          • Page
          • Wall
          • Activity
          • Comment
          • Like
      • Summary
    • 6. Social Networking Services Cloning Facebook 2
      • Building the application flow
        • Structure of the application and flow
        • Authenticating and managing users
        • Landing page, news feed, and statuses
        • Inviting friends and friends list
          • Registering a Facebook application
          • Creating a cross-domain communication channel file
          • Writing the code
        • User page and activity feeds
        • Posting to a wall
        • Sharing photos
          • Managing albums
          • Uploading photos
          • Displaying photos
          • Annotating photos
          • Viewing friends photos
        • Sending messages
        • Creating events
        • Forming groups
        • Sharing content through pages
        • Commenting and liking
      • Deploying the clone
        • Deploying locally
        • Deploying to the cloud
      • Summary
    • Index
  • Назва: Cloning Internet Applications with Ruby. Make clones of some of the best applications on the Web using the dynamic and object-oriented features of Ruby
  • Автор: Chang Sau Sheong
  • Оригінальна назва: Cloning Internet Applications with Ruby. Make clones of some of the best applications on the Web using the dynamic and object-oriented features of Ruby
  • ISBN: 9781849511070, 9781849511070
  • Дата видання: 2010-08-18
  • Формат: Eлектронна книга
  • Ідентифікатор видання: e_3ckg
  • Видавець: Packt Publishing