Cloning Internet Applications with Ruby by Chang Sau Sheong

By Chang Sau Sheong

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

  • Build your individual customized social networking, URL shortening, and photograph sharing web content utilizing Ruby
  • Deploy and release your customized high-end net purposes
  • Learn what makes renowned social networking websites akin to Twitter and fb tick
  • Understand beneficial properties of a few of the main well-known picture sharing and social networking web content
  • A fast moving educational to get you up and operating with cloning the most awesome purposes to be had on the internet.

In aspect

Most clients on the web have a couple of favourite web net functions that they use usually and can't do with no. those well known purposes frequently supply crucial companies that we'd like even whereas we do not totally comprehend its good points or how they paintings. Ruby empowers you to improve your personal clones of such purposes with out a lot ordeal. studying how those websites paintings and describing how they are often applied allows you to flow to the next move of customizing them and permitting your personal model of those prone.

This publication exhibits the reader the best way to clone a few of the Internet's most well-liked purposes in Ruby via first picking out their major positive factors, after which exhibiting instance Ruby code to duplicate this performance.

While we remember the fact that it connects us to our buddies and other people 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 factors paintings? This e-book is the reply to a lot of these questions. it is going to supply 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 web companies reminiscent of TinyURL, Twitter, Flickr, and fb to appreciate what makes it tick. Then utilizing Ruby, the ebook describes how a minimum set of gains for those websites should be modeled, equipped, and deployed on the web.

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

What you'll examine from this publication

  • Discover extensive the key gains of TinyURL, Twitter, Flickr, and fb and what makes them paintings
  • Discover how every one of those renowned web companies may be modeled with DataMapper
  • Create clones of those web prone utilizing Rack and Sinatra
  • Use third-party authentication services with OpenID
  • Deploy the cloned net prone to the cloud utilizing Heroku
  • Use Amazon S3 to shop information to your clones


This is a hands-on publication with lots of good - defined code. each one bankruptcy has a standalone venture during which a whole internet software with particular beneficial properties of a social networking website is emphasised. the ultimate bankruptcy of the booklet is a venture that has an entire and entirely built social networking website. every one bankruptcy starts with a quick description of the gains of the web provider and the promote it is inside of. After extracting the most positive factors of the provider, the bankruptcy is going into explaining how a a twin of the carrier might be designed, by means of a brief 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 causes and code examples. eventually, the bankruptcy indicates how the completed clone may be deployed on the net.

Who this e-book is written for

This publication is written for net program programmers with an intermediate wisdom of Ruby. you'll want to additionally understand how net purposes paintings and you've got used no less than many of the cloned web providers ahead of. while you are a searching for out precisely how will you make your personal personalized functions akin to TinyURL, Twitter, Flickr, or fb, this ebook is for you. Programmers who are looking to contain gains of those web prone into their very own internet functions also will locate this e-book fascinating.

Show description

Read Online or Download Cloning Internet Applications with Ruby PDF

Best web programming books

XML for ASP.NET developers

XML for ASP. internet builders first supplies a pretty good beginning within the fundamentals of MSXML together with XML Syntax, XML Schemas, Xpath, Xlink, Xpointer, and different recommendations essential to leverage the facility of XML. After the development blocks of XML are completely lined, Dan publications readers via manipulating XML files utilizing the rfile item version (DOM) and XSL (Extensible Stylesheet Language) either at the buyer and the server.

ActiveX programming unleashed

A consultant to net programming with ActiveX. The e-book covers ActiveX Controls, lively scripts, ActiveX files, web Server API (ISAPI), low and high point interfaces for downloading info from the net, ActiveX Server Framework and sceurity and optimization concerns for ActiveX programmers

bbPress Complete

A finished consultant to bbPress with transparent and concise directions on increasing your WordPress web site with a group discussion board evaluate A step by step advisor to making, handling, and becoming a neighborhood round your WordPress web site research convenient guidelines from an skilled group supervisor to maintain your discussion board freed from difficulty combine bbPress performance into WordPress with shortcodes intimately inspite of the increase of social media, boards stay a favored a part of the net.

D Web Development

Leverage the facility of D and the vibe. d framework to strengthen internet purposes which are highly fastAbout This BookUtilize the dependent vibe. d framework to construct net functions simply and leisure backends with the D programming languageLearn approximately all elements of vibe. d to reinforce your internet improvement with DA hands-on consultant to the vibe.

Extra info for Cloning Internet Applications with Ruby

Example text

Finally, a negative side effect of random or even customized short URLs is that undesirable, vulgar, or embarrassing short URLs can be created. S. Vice President Dick Cheney and Second Lady Lynne Cheney. We have just covered significant ground on URL shorteners. If you are a programmer you might be wondering, "Why do I need to know such information? " Background information on the application we want to clone is very important. It tells us why that application exists in the first place and gives us an idea of what the main features are (what makes it popular).

The country information is in the form of ISO 3166-1 country codes, which are two letter abbreviations of the country name. For example, Singapore would be SG, France would be FR, and the United States would be US. save end Next, we want to get the visit statistics after storing the visit information. We use two methods to do this – one that get the statistics by date, and another by country of origin. reverse end In the count_by_date_with method, we use SQL directly on the table to get the data for the range of dates that we want.

In this clone we will use base 36, which is 26 characters of the alphabet (case insensitive) and 10 numbers. Using this system, we will only need five characters to represent 1 million URLs: 1,000,000 base 36 = lfls And 1 billion URLs can be represented in just six characters: 1,000,000,000 base 36 = gjdgxs [ 36 ] Chapter 2 Automatically redirecting from a short URL to a long URL HTTP has a built-in mechanism for redirection. In fact it has a whole class of HTTP status codes to do this. HTTP status codes that start with 3 (such as 301, 302) tell the browser to go look for that resource in another location.

Download PDF sample

Rated 4.36 of 5 – based on 14 votes