Cloning Internet Applications with Ruby by Chang Sau Sheong

By Chang Sau Sheong

Make clones of a few of the simplest functions on the net utilizing the dynamic and object-oriented beneficial properties of Ruby

  • Build your individual customized social networking, URL shortening, and picture sharing web content utilizing Ruby
  • Deploy and release your customized high-end net functions
  • Learn what makes well known social networking websites corresponding to Twitter and fb tick
  • Understand positive aspects of a few of the main well-known picture sharing and social networking web content
  • A fast moving instructional to get you up and working with cloning probably the most awesome functions to be had on the net.

In aspect

Most clients on the net have a number of favourite web internet functions that they use usually and can't do with no. those well known functions frequently supply crucial prone that we want even whereas we do not absolutely comprehend its gains or how they paintings. Ruby empowers you to strengthen your individual clones of such functions with out a lot ordeal. studying how those websites paintings and describing how they are often applied lets you stream to your next step of customizing them and allowing your individual model of those companies.

This ebook exhibits the reader find out how to clone a number of the Internet's most well-liked functions in Ruby via first making a choice on their major gains, after which displaying instance Ruby code to copy this performance.

While we keep in mind that it connects us to our neighbors and folks we wish to catch up with, what's the universal characteristic of a social community that makes it a social community? and the way do those positive aspects paintings? This booklet is the reply to these types of questions. it is going to offer a step by step rationalization on how the applying is designed and coded, after which the way it is deployed to the Heroku cloud platform. This book's major objective is to damage up renowned net companies corresponding to TinyURL, Twitter, Flickr, and fb to appreciate what makes it tick. Then utilizing Ruby, the ebook describes how a minimum set of good points for those websites might be modeled, outfitted, and deployed on the web.

Break up and rewrite well known social networking and different net purposes utilizing Ruby

What you'll examine from this e-book

  • Discover extensive the foremost positive aspects of TinyURL, Twitter, Flickr, and fb and what makes them paintings
  • Discover how each one of those renowned web providers should be modeled with DataMapper
  • Create clones of those net prone utilizing Rack and Sinatra
  • Use third-party authentication companies with OpenID
  • Deploy the cloned net prone to the cloud utilizing Heroku
  • Use Amazon S3 to shop facts in your clones

Approach

This is a hands-on booklet with lots of good - defined code. each one bankruptcy has a standalone undertaking during which a whole net program with particular positive factors of a social networking website is emphasised. the ultimate bankruptcy of the ebook is a undertaking that has a whole and completely constructed social networking web site. each one bankruptcy starts off with a short description of the positive factors of the web carrier and the advertise is inside of. After extracting the most good points of the provider, the bankruptcy is going into explaining how a a twin of the provider will be designed, by way of a quick description of the applied sciences and structures getting used. the majority of the bankruptcy is going into describing how the clone is outfitted, with step by step reasons and code examples. eventually, the bankruptcy exhibits how the completed clone could be deployed on the web.

Who this e-book is written for

This ebook is written for internet software programmers with an intermediate wisdom of Ruby. you might want to additionally understand how net purposes paintings and you've got used no less than a few of the cloned net prone earlier than. while you're a looking for out precisely how will you make your own custom-made functions reminiscent of TinyURL, Twitter, Flickr, or fb, this booklet is for you. Programmers who are looking to comprise beneficial properties of those web providers into their very own internet purposes also will locate this publication fascinating.

Show description

Read or Download Cloning Internet Applications with Ruby PDF

Similar web programming books

Learning Ext JS 3.2

The publication offers lots of enjoyable instance code and screenshots to lead you thru the production of examples to aid with studying. by means of taking a chapter-by-chapter examine each one significant element of the Ext JS framework, the ebook permits you to digest the to be had beneficial properties in small, simply comprehensible chunks, permitting you to begin utilizing the library on your improvement wishes instantly.

Foundation Flex for Developers: Data-Driven Applications with PHP, ASP.NET, ColdFusion, and LCDS

Flex is the most important and flexible know-how for developing net program front-ends. yet what each reliable internet software wishes is a strong info resource, be it XML, or a database. Flex is especially adaptable when it comes to connecting to info assets, and that's the major concentration of this publication. In starting place Flex for builders, writer Sas Jacobs assumes that you have got the fundamentals of Flex down already, and explores intimately the best way to create specialist data-centric Flex 2 and Flex three functions.

Dynamic Web programming and HTML5

With organisations and participants more and more depending on the internet, the necessity for powerfuble, well-trained net builders and maintainers is transforming into. supporting readers grasp net improvement, Dynamic net Programming and HTML5 covers particular internet programming languages, APIs, and coding thoughts and offers an in-depth figuring out of the underlying options, idea, and ideas.

Beginning HTML5 Media: Make the most of the new video and audio standards for the Web

Starting HTML5 Media, moment version is a finished creation to HTML5 video and audio. The HTML5 video normal permits browsers to aid audio and video components natively. This makes it really easy for net builders to post audio and video, integrating either in the common presentation of web content.

Extra resources for Cloning Internet Applications with Ruby

Sample text

Tinyclone is the only clone in the book that does not have any access control on its pages. Most URL shorteners have a public and main feature that redirects short URLs to their original, long URLs. In addition to that some URL shorteners have user-specific access controlled pages that provide information to the users such as the statistics and reporting feature shown above. However, in this clone we will not be implementing any access controlled pages. Technologies and platforms used We will use a number of technologies in this chapter, mainly revolving around the Ruby programming language and its various libraries.

The three main types of relationships or associations between tables are: • One-to-one • One-to-many • Many-to-many One-to-one DataMapper's one-to-one association uses the has 1 and belongs_to methods. class User include DataMapper::Resource property :id, Serial has 1, :account end class Account include DataMapper::Resource property :id, Serial belongs_to, :user end Very simply put, the has 1 method shows the user owning one account while belongs_to defines the two-way relationship back to the user.

With a bit of Sinatra magic this becomes our entire web application. We will be looking at Tinyclone from two simple perspectives. The first is the data model. The data model is an abstract view of the objects that are used to represent the application problem space. The second is the application flow, which describes how the application uses the data model to provide the functions needed. As the application isn't very large, we can inspect its code in detail, something we will not be able to do in later chapters when we deal with larger applications.

Download PDF sample

Rated 4.89 of 5 – based on 21 votes