Building APIs with Node.js by Caio Ribeiro Pereira

By Caio Ribeiro Pereira

Это краткое руководство научит вас, как создавать масштабируемые интерфейсы API с использованием платформы Node.js и ES6 (ECMAScript 2015). Разработка систем для широкого спектра устройств, доступных в современном мире требует построения API, предназначенных для работы только с данными в централизованном порядке, которые работают с клиентскими приложениями, которые разрабатываются отдельно и имеют уникальный интерфейс для конечного пользователя. Node.js зарекомендовал себя как отличная платформа для построения leisure API из-за его однопоточной архитектуры. Он имеет низкий порог вхождения для обучения и может быть понятен любому человеку, который имеет базовое представление о языке javascript. Используйте эту книгу для того, чтобы понять, как работает Node.js API и как вы можете создать свой собственный масштабируемый API.

Show description

Read Online or Download Building APIs with Node.js PDF

Similar javascript books

Building Single-page Web Apps with Meteor

Approximately This Book

Create a whole net web publication from frontend to backend that makes use of basically JavaScript
Understand how net 2. zero is made through robust browser-based applications
Step-by-step educational that may convey you the way quickly, complicated internet purposes may be built
Who This booklet Is For

If you're a internet developer with easy wisdom of JavaScript and wish to tackle internet 2. zero, construct real-time purposes, or just are looking to write an entire software utilizing basically JavaScript and HTML/CSS, this can be the publication for you.

This booklet relies on Meteor 1. zero.

JavaScript (5th Edition) (The Web Technologies Series)

Now in its 5th version, JAVASCRIPT courses starting programmers via net program improvement utilizing the JavaScript programming language. As with past variants of this publication, Don Gosselin introduces key internet authoring ideas with a powerful specialise in software. A real-world undertaking, just like what scholars could come upon in a qualified environment, is built all through each one bankruptcy.

JavaScript & jQuery: The Missing Manual, 2nd Edition

JavaScript allows you to supercharge your HTML with animation, interactivity, and visible effects-but many net designers locate the language tough to profit. This jargon-free consultant covers JavaScript fundamentals and indicates you the way to save lots of effort and time with the jQuery library of prewritten JavaScript code. you will soon be development web content that consider and act like machine courses, with no need to do a lot programming.

Javascript Unlocked

Enhance your code maintainability, functionality, and safety via functional professional insights and unencumber the whole capability of JavaScriptAbout This BookImprove your JavaScript code for larger maintainability and performanceDiscover the best way to enforce scalable software structure with JavaScriptLearn to exploit JavaScript in the back of the browser, together with its command-line instruments, computer apps, and local cellular appsWho This publication Is ForJavaScript Unlocked is for these JS builders who are looking to see simply how some distance they could push their favorite language via sensible perception and methods.

Additional resources for Building APIs with Node.js

Sample text

An object is a representation of a "thing" (someone or something), and this representation is expressed with the help of a programming language. The thing can be anything—a real-life object, or some more convoluted concept. Taking a common object like a cat for example, you can see that it has certain characteristics (color, name, weight) and can perform some actions (meow, sleep, hide, escape). The characteristics of the object are called properties in OOP and the actions are called methods. There is also an analogy with the spoken language: • Objects are most often named using nouns (book, person) • Methods are verbs (read, run) • Values of the properties are adjectives Let's take, for example, the sentence "The black cat sleeps on my head".

In the following example you can also see that the second time we set a variable's value, we don't need the var statement. 23; >>> typeof n; "number" You can call typeof directly on the value, without assigning it to a variable first: >>> typeof 123; "number" Octal and Hexadecimal Numbers When a number starts with a 0, it's considered an octal number. For example, the octal 0377 is the decimal 255. >>> var n3 = 0377; >>> typeof n3; "number" >>> n3; 255 The last line in the example above prints the decimal representation of the octal value.

Then if you type . (the dot operator), you can press Tab several times and it will iterate through all the available properties and methods you can call on the document object. By using the UP and DOWN arrow keys, you can go through the list of already-executed commands and bring them back in the console. The console gives you only one line to type in, but you can execute several JavaScript statements by separating them with semi-colons. If you need more space or more lines, you can open the console in a multi-line mode, by clicking the upward-facing arrow on the far right of the input line.

Download PDF sample

Rated 4.76 of 5 – based on 31 votes

About the Author

admin