Skip to content

Lab 06 - Create a NodeJS application

What you will learn

How to run a custom NodeJS application that interacts with the Domino REST API.

Before you begin

  • You have completed Lab 05 - Create an application.
  • Your Domino server must be running.
  • You have NodeJS installed on your machine.
  • You have internet connection.

Procedure

  1. Download and extract the apps-src.zip file from the source for all apps in a folder.

    The apps-src.zip contains 3 folders. In this activity, you are going to use the DominoOAuth folder.

  2. Open your IDE, such as Visual Studio Code.

  3. Open the folder srcDominoOAuth from your IDE.
  4. From the DominoOAuth folder, select and edit package.json, and then save your changes.
  5. From the DominoOAuth folder, select and edit setup.json. Add the values from Lab 04 - Additional scope & schema and Lab 05 - Create an application, and save your changes.

    Note

    As a user, you must know what are the needed fields to be modified to run the setup.json.

  6. On your Terminal in your IDE and run npm install.

  7. Run npm start. You must start your browser to check.

How to verify

  • Navigate to http://localhost:3000, and the UI of the app should show.
  • Retrieve data.

Things to explore

Next step

Proceed to Lab 07 - Create an SPA.