O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Developing Node.js Applications on IBM Cloud

Book Description

Abstract

This IBM® Redbooks® publication explains how to create various applications based on Node.js, and deploy and run them on IBM Cloud. This book includes the following exercises:


  • Develop a Hello World application in Node.js on IBM Cloud.

  • Use asynchronous callback to call an external service.

  • Create an Express application.

  • Build a rich front-end application by using React and ES6.


  • During these exercises, you will perform these tasks:


  • Create an IBM SDK for Node.js application.

  • Write your first Node.js application.

  • Deploy an IBM SDK for Node.js application on an IBM Cloud account.

  • Create a Node.js module and use it in your code.

  • Understand asynchronous callbacks and know how to use it to call an external service.

  • Understand IBM Watson™ Language Translator service.

  • Create a Hello World Express application.

  • Create a simple HTML view for your application.

  • Understand Express routing.

  • Use third-party modules in Node.js.

  • Understand IBM Watson® Natural Language Understanding service.

  • Use a Git repository on IBM Cloud DevOps services.

  • Understand Delivery Pipeline.

  • Understand how to clone an IBM Cloud application.

  • Use React to create interactive web pages.

  • Understand the following concepts of ES6: Classes, arrow functions, and promises.


  • This book is for beginner and experienced developers who want to start coding Node.js applications on IBM Cloud.

    Table of Contents

    1. Front cover
    2. Notices
      1. Trademarks
    3. Preface
      1. Authors
      2. Now you can become a published author, too!
      3. Comments welcome
      4. Stay connected to IBM Redbooks
    4. Chapter 1. Developing a Hello World Node.js app on IBM Cloud
      1. 1.1 Getting started
        1. 1.1.1 Objectives
        2. 1.1.2 Prerequisites
        3. 1.1.3 Expected results
      2. 1.2 Architecture
      3. 1.3 Step-by-step implementation
        1. 1.3.1 Set up your IBM Cloud account
        2. 1.3.2 Log in to your IBM Cloud account
        3. 1.3.3 Create the Node.js application on IBM Cloud
        4. 1.3.4 Enable continuous delivery by using toolchain
        5. 1.3.5 Create a Hello World Node.js server
        6. 1.3.6 Add a module to the Node.js application
        7. 1.3.7 Stop the application
      4. 1.4 Exercise review
    5. Chapter 2. Understanding asynchronous callback
      1. 2.1 Getting started
        1. 2.1.1 Objectives
        2. 2.1.2 Prerequisites
        3. 2.1.3 Background
        4. 2.1.4 Expected results
      2. 2.2 Architecture
      3. 2.3 Step-by-step implementation
        1. 2.3.1 Log in to your IBM Cloud account
        2. 2.3.2 Create the Node.js application on IBM Cloud
        3. 2.3.3 Enable continuous delivery
        4. 2.3.4 Integrate the Node.js app with the Watson Language Translator service
        5. 2.3.5 Access the Language Translator service from the Node.js app
        6. 2.3.6 Access the Language Translator service through a Node.js module
        7. 2.3.7 Stop the application
      4. 2.4 Exercise review
    6. Chapter 3. Creating your first Express application
      1. 3.1 Getting started
        1. 3.1.1 Objectives
        2. 3.1.2 Prerequisites
        3. 3.1.3 Expected results
      2. 3.2 Architecture
      3. 3.3 Step-by-step implementation
        1. 3.3.1 Log in to your IBM Cloud account
        2. 3.3.2 Create the Node.js application on IBM Cloud
        3. 3.3.3 Create the Hello World Express application
        4. 3.3.4 Create a simple HTML view and organize the code
        5. 3.3.5 Integrate with Watson Natural Language Understanding service
        6. 3.3.6 Deploy the application and run it
      4. 3.4 Exercise review
    7. Chapter 4. Building a rich front-end application by using React and ES6
      1. 4.1 Getting started
        1. 4.1.1 Objectives
        2. 4.1.2 Prerequisites
        3. 4.1.3 Background concepts
        4. 4.1.4 Expected results
      2. 4.2 Architecture
      3. 4.3 Step-by-step implementation
        1. 4.3.1 Log in to IBM Cloud
        2. 4.3.2 Clone the Express application from Git by using the Delivery Pipeline
        3. 4.3.3 Create your first React page
        4. 4.3.4 Add a dynamic form to the page
        5. 4.3.5 Add more components to the form
        6. 4.3.6 Using the Fetch API to call the Node.js author service
      4. 4.4 Exercise review
    8. Appendix A. Additional material
      1. Locating the material on GitHub
    9. Related publications
      1. IBM Redbooks
      2. Online resources
      3. Help from IBM
    10. Back cover