Building APIs with Node.js by Caio Ribeiro Pereira

By Caio Ribeiro Pereira

Learn the best way to construct scalable APIs utilizing the Node.js platform and ES6 (EcmaScript 2015) with this fast, informative guide.

Developing structures for the wide variety of units to be had within the smooth global calls for the development of APIs designed to paintings merely with info in a centralized demeanour, permitting client-side functions to be built individually and feature a different interface for the ultimate user. 

Node.js has confirmed itself to be a great platform for development relaxation APIs as a result of its single-thread structure. It has a low studying curve and will be understood by way of someone who has a basic understanding of the JavaScript language. 

Use Building APIs with Node.js today to appreciate how Node.js APIs paintings, and the way you could construct your own.

What you'll Learn
  • Build scalable APIs utilizing the Node.js platform
  • Use ES6, exhibit, Passport, ApiDoc, Mocha, Helmet and more
  • Integrate an SQL database via Sequelize.js and construct a unmarried web page program utilizing Vanilla.js

  • Who This ebook Is For 
    Ideal for builders who've a easy knowing of JavaScript and Node.js.

    Show description

    Read Online or Download Building APIs with Node.js PDF

    Similar javascript books

    Beginning Android Web Apps Development: Develop for Android using HTML5, CSS3, and JavaScript

    With starting Android net Apps improvement, you'll the best way to practice HTML5, CSS3, JavaScript, Ajax and different internet criteria to be used at the Android cellular platform, through construction quite a few enjoyable and visually stimulating video games and different internet purposes! If you've performed a few simple net improvement, and you are looking to construct your talents to create exceptional web apps, you'll find everything you search within the discussions and examples during this booklet.

    Pro Windows 8 Development with HTML5 and JavaScript

    Apps are on the middle of home windows eight, bringing wealthy and interesting reports to either capsule and machine clients. home windows eight makes use of the home windows Runtime (WinRT), a whole reimagining of home windows improvement that helps a number of programming languages and is outfitted on HTML5, CSS and JavaScript. those functions are the way forward for home windows improvement and JavaScript is ideal language to exploit this interesting and versatile surroundings.

    Ruby in a Nutshell: A Desktop Quick Reference (In a Nutshell (O'Reilly))

    Ruby is a fully natural object-oriented scripting language written in C and designed with Perl and Python services in brain. whereas its roots are in Japan, Ruby is slowly yet definitely gaining floor within the US. The aim of Yukihiro Matsumoto, writer of Ruby and writer of this ebook, is to include the strengths of languages like Perl, Python, Lisp and Smalltalk.

    Erlang Programming: A Concurrent Approach to Software Development

    This booklet is an in-depth advent to Erlang, a programming language excellent for any scenario the place concurrency, fault tolerance, and quickly reaction is vital. Erlang is gaining common adoption with the appearance of multi-core processors and their new scalable method of concurrency. With this consultant you will the right way to write complicated concurrent courses in Erlang, despite your programming history or adventure.

    Extra resources for Building APIs with Node.js

    Sample text

    Scope) You have to specify the same event handler function and scope used in the on method. info Chapter 4 ■ Controls and Layout addEvents, fireEvent The Component class provides methods addEvents and fireEvent for adding events and firing the event respectively. These two methods are mainly used when you create custom components with custom events. ). fireEvent(‘eventname’). You’ll learn more about these functions in Chapter 10 when we discuss creating custom components. Now let’s discuss the events in the Component class.

    The code throws up the output as shown in Figure 4-13. Figure 4-13. Panel with Accordion layout Table Layout Table layout is used to render a HTML table element. It has all the properties of a table, the most commonly used being the columns attribute. Listing 4-11 shows the code snippet of a panel that uses a table layout. Listing 4-11. getBody() }); You’ll get an output as shown in Figure 4-14. Figure 4-14. Panel with a Table layout Column Layout Column layout arranges the container in separate columns starting from left to right.

    The default value is qtip where the error message is displayed as a quick tip as shown in Figure 4-6. Figure 4-6. Form panel with validation rules Another useful property called vtype can be used for using built-in validation rules like e-mail, URL, and so forth. The blog text field we have used in our example can be configured to have a validation type as shown here. { xtype : "textfield", fieldLabel : "Blog", vtype : "url" } The blog field will display an error message as shown in Figure 4-7.

    Download PDF sample

    Rated 4.01 of 5 – based on 26 votes