RESTful Rails Development: Building Open Applications and Services

RESTful Rails Development: Building Open Applications and Services

Silvia Puglisi

Language: English

Pages: 304

ISBN: 1491910852

Format: PDF / Kindle (mobi) / ePub

The Web is slowly but surely changing from a model in which a human reader browses content on web pages to a model in which services and clients (not necessarily humans) exchange information. And because of this, author Silvia Puglisi explains, it makes more sense to build platforms instead of just products or applications. Platforms are like ecosystems interconnecting different applications, services, users, developers, and partners, and offer many benefits.

In this book, you'll learn how to design and develop Representational State Transfer (REST) platforms in Rails. You'll begin with an introduction to Ruby on Rails, and then move quickly through new concepts. At the end of each chapter, you'll have learned something new about building and organically extending a multi-service platform spanning different devices—and will have had some fun in the process. By the end of the book you'll know how to build an architecture composed of different services accessing shared resources through a set of collaborating APIs and applications.

  • Explore the basics of REST and HTTP, including REST architecture and the role of hypermedia
  • Get to know Rails and Ruby on Rails
  • Learn about API development and create an API
  • Take a thorough look at REST, including Asynchronous REST and testing RESTful services
  • Work with data streams as you map them onto an application UI and integrate external APIs in your application
  • Learn about device-independent development
  • Use data analytics to recognize important events, develop key metrics, and track them
  • Explore various tools you can use to build your own data analytic platform
  • Learn how to scale a Rails application successfully
  • Examine privacy and security issues and the implications of handling and collecting user data

iPhone Game Development: Developing 2D & 3D games in Objective-C

The DevOps 2.0 Toolkit

Testable JavaScript

Learning Node





















Main_topic_classifications. Let’s start the database and the server and verify it is working: $ mysqld & $ rails server If everything is working correctly, we will see the JSON string describing the graph for the top category: { "main_topic_classifications": [ { "sub_category": "arts", ... } ]} Once we have made sure that our gateway is working correctly, we can continue defining the other actions in the controller. First, we’ll modify the show action. This time we will also make sure to

DELIMITER ',' CSV; COPY blocks FROM '/GeoLite2-City-Blocks.csv' DELIMITER ',' CSV; COPY locations FROM '/GeoLite2-City-Locations.csv' DELIMITER ',' CSV; Defining the models To be able to make geographical queries through PostGIS we need to define some factory logic that will set the location information for each record. This is accomplished through the RGeo gem, which offers a flexible type system for geographical coordinates that can be quickly interpreted by analyzing

understand if the APIs you have decided to use are a good fit for your purposes. When you review different services you might find that some APIs are a good fit technically, but will not scale as your app starts growing and serving more users. Some other APIs might instead provide very few limits in terms of traffic or the number of requests that you can send them, but restrict how you use the information provided. While you’re thinking about the terms of service of the APIs integrated into

different languages. On the other hand, the Web is already cross-platform by design. Any device that can access the Internet and has a browser can access your application. Web applications feel and act more like native applications than simply hypertext or old-fashioned static websites. By the term native application, we mean a software program that exposes a graphical user interface (GUI). In a GUI, users can manipulate graphical elements, as opposed to just interacting with the application

“mobile application” can actually mean three different things: you can either develop a native application in the language of the platform you choose, or develop an HTML app that can be used cross-platform, or develop a hybrid application. A hybrid application will use some aspects specific to the platform where it will be running, while also implementing part of its logic in HTML. Usually native applications make better use of the platform-specific features and HTML apps do feel a bit clumsier,

Download sample