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
-
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. -
Open your IDE, such as Visual Studio Code.
- Open the folder
src
→DominoOAuth
from your IDE. - From the
DominoOAuth
folder, select and editpackage.json
, and then save your changes. -
From the
DominoOAuth
folder, select and editsetup.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
. -
On your Terminal in your IDE and run
npm install
. - 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
-
Check out the source code.
Next step
Proceed to Lab 07 - Create an SPA.