Skip to content

About

Self-Service Sample Application

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

85 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Self-Service Sample Application with Java REST server, MySQL database and Node.js frontend.

Project Setup

  1. Clone the project
  2. Download AppServerAgent.zip from your controller Getting Started Wizard - Java.
  3. Go to Getting Started Wizard - Node.js, give the app same name as your Java application. Copy the controller configuration to a node-properties.txt and put in project root. For example:
// node-properties.txt
require("appdynamics").profile({
 controllerHostName: 'xxx.xxx.xx.xx',
 controllerPort: 8090, 
   accountName: 'your-account-name',
 accountAccessKey: 'your-access-key',
 applicationName: 'SampleApp',
 tierName: 'NodeTier',
 nodeName: 'process' // The controller will automatically append the node name with a unique number
});

Build and Run containers with docker-compose:

docker-compose build
docker-compose up

Check Terminal Output

Check for the following output from Tomcat startup:


Creating db
Creating rest
Creating sample-app
Attaching to db, rest, sample-app
db            | Initializing database
db            | 2016-06-24T19:20:26.636027Z 0 [Warning] InnoDB: New log files created, LSN=45790
db            | 2016-06-24T19:20:26.661596Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
...
sample-app    | [email protected] node_modules/appdynamics
sample-app    | ├── [email protected]
sample-app    | ├── [email protected]
sample-app    | ├── [email protected]
sample-app    | ├── [email protected]
sample-app    | └── [email protected]
sample-app    | Node Server Started
...
rest          | Jun 24, 2016 7:20:53 PM org.apache.catalina.startup.HostConfig deployDirectory
rest          | INFO: Deployment of web application directory /tomcat/webapps/docs has finished in 45 ms
rest          | Jun 24, 2016 7:20:53 PM org.apache.coyote.AbstractProtocol start
rest          | INFO: Starting ProtocolHandler ["http-nio-8080"]
rest          | Jun 24, 2016 7:20:53 PM org.apache.coyote.AbstractProtocol start
rest          | INFO: Starting ProtocolHandler ["ajp-nio-8009"]
rest          | Jun 24, 2016 7:20:53 PM org.apache.catalina.startup.Catalina start
rest          | INFO: Server startup in 17081 ms

See App Running

Once your app is running, you will see this:

alt tag

About

Self-Service Sample Application

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages