Skip to content

imaas-wynder/goose-watch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goose Watch Web Application built with OpenText CMS, CSS, InfoIntel, and Messaging Services

This application showcases four OpenText API Services - Content Metadata Service (CMS), Content Storage Service (CSS), Information Intelligence Service (InfoIntel) and Messaging Serice, running on the OpenText Cloud Platform (hosted on GCP), and the use of a Relational Database (mySQL) to store the form data.

This project was bootstrapped with Create React App. This was combined with the OpenText Thrust Services.

This sample application demonstrates the following capabilities:

  1. Using Information Intelligence API to assess level of risk posed by the uploaded image.
  2. Using Messaging Service to send an email notification when the user requests assistance.
  3. Using Content Storage Service to store the uploaded image in the Content Storage.
  4. Using Content Metadata Service to create the file metadata.
  5. Using mySQL to load form data into a relational database.

Deploying the Application

There are 2 parts to the setup:

1. Application Code - Deploying the application code and installing Node.js libraries.

  1. Download the Goose Watch application code from GitHub.
  2. Download and install the latest LTS version of Node.js from https://nodejs.org/. (You can also use Node Version Manager to manage multiple versions of Node). This sample application was built on Node v20.11.1.
  3. In the application root folder install the node libraries using the command
npm install

2. Database – Installing mySQL database and creating the 2 tables used by the application.

  1. Download and install mySQL Server (Community Edition) 8.0 or later by going to mySQL.
  2. During installation, make note of the port (default is 3306), and create a new user with DB Admin role (make note of the user name and password).
  3. Use a client program like MySQL Workbench to run the following database script to create the database table.
db_scripts\create_table_goose_watch.sql

Running the Application

Before you run the application, update add the following information, based on your OCP (OpenText Cloud Platform) account, in the properties.js file located in the src sub-folder

tenant_id: 
username: 
password: 
client_id: 
client_secret: 
email_for_assistance: 

The following endpoing information in the properties.js are based on having the OCP account in the US Region. However, if you have created your account in a different region, please update the following:

  base_url: 'https://us.api.opentext.com',
  css_url: 'https://css.us.api.opentext.com',
  infointel_url: 'https://infointel.us.api.opentext.com',
  messaging_url: 'https://t2api.us.cloudmessaging.opentext.com',

The sample images folder contains sample images that can be used to test this application

Client-side application: To run the client-side application, open a command line (terminal) and type the following command in the application root folder.

npm start

Running this command will also open the application frontend in your default web browser.

Server-side application: To compile and run the server-side application, open another command line (terminal) and run the following commands from the application root folder.

npm run build:server
npm run start:server

Interacting with the Application

The Goose Watch web application contains a simple web form that captures information related to goose sightings. Application allows the user to also upload an image, which is scanned for risk assessment before being stored in the content storage. All the data is then stored in mySQL database. If the user requests for assistance, an email is sent to the email address stored in the properties file.

Developer Support

If you require support with this web application you can post your question on the OpenText Developer Forum.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 92.0%
  • HTML 4.2%
  • CSS 3.8%