By Chang Sau Sheong

Make clones of a few of the easiest functions on the internet utilizing the dynamic and object-oriented positive factors of Ruby

  • Build your personal customized social networking, URL shortening, and photograph sharing web pages utilizing Ruby
  • Deploy and release your customized high-end net purposes
  • Learn what makes well known social networking websites resembling Twitter and fb tick
  • Understand good points of a few of the main recognized photograph sharing and social networking web content
  • A fast paced instructional to get you up and working with cloning one of the most awesome functions on hand on the net.

In element

Most clients on the web have a couple of favourite net net functions that they use frequently and can't do with no. those well known functions frequently supply crucial providers that we want even whereas we do not totally comprehend its gains or how they paintings. Ruby empowers you to improve your individual clones of such functions with out a lot ordeal. studying how those websites paintings and describing how they are often carried out allows you to circulate to your next step of customizing them and permitting your personal model of those prone.

This e-book exhibits the reader how one can clone a number of the Internet's hottest functions in Ruby via first settling on their major gains, after which exhibiting instance Ruby code to copy this performance.

While we remember the fact that it connects us to our acquaintances and folks we wish to catch up with, what's the universal function of a social community that makes it a social community? and the way do those gains paintings? This booklet is the reply to most of these questions. it's 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 goal is to wreck up well known net providers akin to TinyURL, Twitter, Flickr, and fb to appreciate what makes it tick. Then utilizing Ruby, the booklet describes how a minimum set of positive aspects for those websites should be modeled, outfitted, and deployed on the net.

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

What you'll study from this e-book

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


This is a hands-on ebook with lots of good - defined code. each one bankruptcy has a standalone venture during which a whole internet software with particular positive aspects of a social networking website is emphasised. the ultimate bankruptcy of the publication is a venture that has a whole and completely built social networking website. every one bankruptcy starts off with a quick description of the good points of the net carrier and the put it on the market is inside. After extracting the most gains of the carrier, the bankruptcy is going into explaining how a the image of the carrier might be designed, via a quick description of the applied sciences and systems 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 indicates how the completed clone will be deployed on the net.

Who this e-book is written for

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

Show description

Read or Download Cloning Internet Applications with Ruby PDF

Similar web programming books

Aptana RadRails: An IDE for Rails Development: A comprehensive guide to using RadRails to develop your Ruby on Rails projects in a professional and productive manner

The RadRails IDE appears to be like good fleshed out. It offers many helpful aids to the Ruby on Rails programmer. The ebook indicates a number of examples and display captures.

Plus, there also are a few accelerators. Like code templates. this allows you to outline snippets of favourite code. Then through a couple of keys, a snippet should be inserted at a place contained in the major code. even though, come to consider it, you have to most likely minimise utilization of this option. simply because if overused it may bring about many code duplicates, which raises the dimensions of the general code, and makes upkeep tougher, if you want to make an identical swap to all circumstances of a given snippet.

RadRails additionally offers aid for a debugger. Making it effortless to invoke. this selection is definitely worthy cautious examining.

HTML, XHTML & CSS For Dummies

I locate that HTML, XHTML & CSS for Dummies is of a similar caliber (and quirkiness) because the different "for Dummies" books. it is a nice table reference booklet for rookies or those who do not code websites frequently. i'd suggest this publication as a reference / aspect buy to express net coding tutorial books.

Elgg 1.8 Social Networking

Create, customise, and installation your personal social networking website with Elgg An up-to-date model of the first actual booklet on Elgg targeted and easy-to-understand research on development your personal social networking web site with Elgg discover the mammoth variety of Elgg's social networking services together with groups, sharing, profiles and relationships learn how to create plugins and topics with large tutorials Written by means of funds Costello, a middle developer of the Elgg crew, with a foreword from Dave Tosh, Elgg co-founder.

Sinatra: Up and Running: Ruby for the Web, Simply

Benefit from Sinatra, the Ruby-based internet program library and domain-specific language utilized by GitHub, LinkedIn, Engine backyard, and different favorite corporations. With this concise e-book, you'll speedy achieve operating wisdom of Sinatra and its minimalist method of development either standalone and modular net purposes.

Extra resources for Cloning Internet Applications with Ruby

Sample text

46 ] Chapter 2 Application flow Like many web applications, most of the logic for the application lies in the model. The logic in the application flow (as the name suggests) mainly deals with routing or display formatting, besides actually calling the various classes and objects to do their jobs. As a result, this part of Tinyclone is relatively simple. As the routing flow becomes more complex in later chapters, this might not be necessarily true. The application has six different routes, but only three of them do any significant work.

Com/sausheong/tinyclone'} Full source code Reading Haml code takes some getting used to but after a while it becomes a breeze. If you feel confused at this point in time please refresh your Haml knowledge in Chapter 1! The other page is the information page, which provides information of the short URL to the user. last %img{:src => @count_country_bar} %p The information template is mostly laid out using Blueprint CSS. The rules for using Blueprint grid layout are rather simple. Blueprint defines a grid on a page to be 950px, with 24 columns of width 30px, and a 10px margin between columns.

If it is, we throw an exception and ask the user to use another label. We also check the custom label with a list of banned words that we don't want as custom labels. If these two checks are cleared, we proceed to create the Link object and the Url object then save them. If a custom label is not provided, we will use a recursive method to create the link. We use a recursive method because without a custom label, we will use the record ID as the identifier for the Link object. If coincidentally the custom label is in the list of banned words or if the record ID created is the same as an existing custom label, we want to create another Url object to represent the new Link object.

Download PDF sample

Rated 4.55 of 5 – based on 34 votes