Muutke küpsiste eelistusi

E-raamat: RESTful Rails Development: Building Open Applications and Services

  • Formaat: 304 pages
  • Ilmumisaeg: 08-Oct-2015
  • Kirjastus: O'Reilly Media
  • Keel: eng
  • ISBN-13: 9781491910818
Teised raamatud teemal:
  • Formaat - EPUB+DRM
  • Hind: 28,67 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: 304 pages
  • Ilmumisaeg: 08-Oct-2015
  • Kirjastus: O'Reilly Media
  • Keel: eng
  • ISBN-13: 9781491910818
Teised raamatud teemal:

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

This book serves as a practical guide to developing RESTful applications, designing RESTful architectures, and deploying RESTful services using Ruby on Rails. By the end of each chapter, the reader will have key takeaways for how to build and extend a multi-service platform spanning different devices. The book explains the power of RESTful development with Rails, illustrating how to build an architecture composed of different services accessing shared resources through a set of collaborating APIs and applications.

Preface xiii
1 From Hypertext to Hyperdata 1(14)
REST and HTTP
1(3)
Architectural Abstractions
2(1)
Introducing REST
3(1)
RESTful Programming and Hypermedia
4(10)
Design Concepts
5(1)
RESTful Architectures
5(4)
RESTful Interfaces: Hypermedia and Action Controls
9(5)
Wrapping Up
14(1)
2 Getting Started with Ruby on Rails 15(18)
Getting to Know Ruby on Rails
15(1)
Setting Up Ruby and Rails
16(4)
RVM
16(1)
rbenv
17(3)
Using an Installer
20(1)
The Architecture of a Rails App
20(11)
Model-View-Controller
20(2)
Object-Relational Mapping
22(1)
Bundler
23(1)
Choosing an Editor
24(1)
Hello Rails
24(5)
Test-Driven Development
29(2)
Wrapping Up
31(2)
3 First Adventures in API Design 33(24)
Application Programming Interfaces
33(2)
Dos of API Development
35(5)
Do KISS and DRY
36(6)
Do URI Design
37(3)
Why You Should Use Rails to Build APIs
40(2)
The WikiCat API
42(13)
Preparing the Database
42(2)
Scaffolding the Models
44(5)
Coding Controllers and Serializers
49(4)
Testing
53(2)
Wrapping Up
55(2)
4 The REST of the World 57(10)
Life Is CRUD
57(1)
RESTful Rails
58(3)
Testing RESTful Routing in Rails
60(1)
HTTP Semantics
61(5)
GET
63(1)
HEAD
64(1)
POST
64(1)
PUT
65(1)
DELETE
65(1)
Wrapping Up
66(1)
5 Designing APIs in RoR 67(12)
Hypermedia and Adaptable APIs
67(3)
REST Patterns
70(2)
Creating Hypermedia Interfaces
71(1)
Resource-Oriented Thinking
72(1)
Designing Explorable Resources
72(1)
HATEOAS
72(1)
The WikiCat Hypermedia API
73(5)
Wrapping Up
78(1)
6 Asynchronous REST 79(14)
Asynchronous RESTful Operations
79(2)
Asynchronous REST in Rails
81(10)
Rails Workers and Background Jobs
81(1)
Creating an Application Skeleton in Three Easy Steps
81(1)
Uploading Images Through an API Call
82(4)
Creating Workers and a Jobs Queue
86(2)
Creating a Resource Queue
88(3)
Callbacks
91(1)
WebSockets
91(1)
Wrapping Up
92(1)
7 Testing RESTful Services 93(6)
Testing in Rails
93(2)
Mocks, Stubs, Doubles, and Dummies
95(1)
Testing RESTful Services
96(1)
Wrapping Up
97(2)
8 Microservices and Microapplications 99(32)
Basics of SOA and Distributed Systems Design
99(3)
Legacies
100(1)
Heterogeneity
101(1)
Complexity
102(1)
Redundancy
102(1)
Microservices Paradigms
102(1)
The Evolutionary Approach
103(1)
Thinking in Terms of Microapplications and Services
104(1)
The Thematic Walks API
105(24)
The Wikipin API
106(13)
The Citywalks API
119(2)
Discovering the /lib Directory
121(4)
Defining the Models
125(1)
Building the Controllers
125(4)
Wrapping Up
129(2)
9 Mapping Data Streams onto an Application UI 131(20)
Wanderings in Frontend Land
131(2)
Rendering and Templating in Rails
133(1)
Ember.js: A Framework for Creating Ambitious Web Applications
134(6)
Designed for Application Development
135(1)
MVC Paradigm of Frontend
136(1)
Rails MVC Versus Ember.js MVC
137(3)
Planning the Application
140(2)
Getting Started with Ember.js
140(2)
Modeling Data
142(1)
Routing in Ember.js
143(2)
Defining the Templates
145(1)
Writing a Component
146(3)
Exploring Walks Through Categories
149(1)
Wrapping Up
149(2)
10 Deploying an API 151(10)
How Is an API Deployed?
151(4)
API Management
152(2)
PaaS Solutions
154(1)
Deploying the Wikipin API on OpenShift
155(2)
Preliminary Steps
156(1)
Meet Jenkins
157(3)
Wrapping Up
160(1)
11 Managing an App Ecosystem 161(8)
API Management
161(3)
APIs Are Not Consumer Products
162(2)
Managing Your Community's Happiness
164(3)
Developer Programs
164(2)
App and API Quality
166(1)
User Happiness
167(1)
Data Management and Analytics
167(1)
Wrapping Up
168(1)
12 Consuming Data Streams: Integrating External APIs in Your Application 169(12)
Creating a Weather Service
169(1)
If This Then Something
170(6)
Adhering to the Terms of Service
176(1)
Asynchronous REST
177(3)
Wrapping Up
180(1)
13 Device-Independent Development 181(14)
Web Development Is a Broad Term
181(2)
Developing for Mobile
182(1)
Streaming Data into a Firefox OS App
183(2)
Developing an Internet of Things App
185(9)
Rails on the Raspberry Pi
186(2)
Creating the Raspboard App
188(6)
Wrapping Up
194(1)
14 Data Analytics 195(20)
Data Comes from Everywhere
195(1)
Monolithic Versus Microapplication Architectures
196(3)
Monitor, Optimize, and Enhance
199(9)
Application Logs
200(1)
Monitor Request Response Times
201(1)
Monitor Processes
202(2)
Monitor Your Server Diagnostics
204(3)
Comprehensive Monitoring Solutions
207(1)
Actions and Events
208(6)
Plotting Data
210(4)
Wrapping Up
214(1)
15 Scaling Gracefully 215(18)
Scaling Rails
215(3)
Creating a Middleware for Different APIs to Communicate
218(1)
Configuring a Reverse Proxy with Nginx
219(4)
Meet Lua
223(1)
Bundle Things Together
224(2)
Caching
226(4)
Scaling Is Not Necessarily Difficult and Painful
230(1)
Wrapping Up
231(2)
16 Privacy and Security 233(16)
How to Protect User Privacy
233(4)
k-anonymity
235(1)
Differential Privacy
236(1)
Privacy-Enhancing Technologies
236(1)
Is My Data Safe?
237(3)
Common Sources of Insecurity
239(1)
Is Rails Secure?
240(8)
Sessions
242(4)
Cross-Site Request Forgery
246(1)
Redirection
247(1)
File Upload
247(1)
File Download
247(1)
Logs
247(1)
Conclusions
248(1)
A HTTP Quick Reference 249(16)
Index 265
Silvia Puglisi is a software engineer based in Barcelona, Spain. She is also part of the Information Security Group in the Department of Telematics Engineering at Universitat Politecnica de Catalunya (UPC) as Ph.D. candidate and research engineer. Previously Silvia worked for Google, Inc. as Operations Engineer and Enterprise Engineer. She has a passion for technology and the web and likes building open applications and services for fun and profit. When she needs to rest her eyes away from the computer screen she loves hanging out at the beach and surfing.