Skip to content

Latest commit

 

History

History
75 lines (48 loc) · 2.42 KB

DemoSetup.md

File metadata and controls

75 lines (48 loc) · 2.42 KB

AppSensor Demo Setup

These instructions will help you get setup to run a demo similar to what was done for AppSecUSA 2015. (video here: https://www.youtube.com/watch?v=1imlD1O4HrY)

  1. Install Java 8
  • follow OS-specific install process
  1. Get AppSensor Code
  • clone the repo (or your fork)

    git clone https://github.com/jtmelton/appsensor.git
    
  • get into appsensor directory

    cd appsensor
    
  • install multi-module parent

    mvn -N install 
    
  • run the tests and install locally

```
mvn install
```
  1. Install MySQL
  • follow OS-specific install process (this demo assumes localhost, Problems have been noted with MySQL 8.x but MySQL 5.7.x should work fine)
  1. Load Data into MySQL
  1. Start REST / WebSocket Server
mvn spring-boot:run -DAPPSENSOR_WEB_SOCKET_HOST_URL=ws://localhost:8085/dashboard
  1. Start REST Client Data Generator
mvn spring-boot:run
  1. Start AppSensorUI
mvn spring-boot:run -DAPPSENSOR_REST_REPORTING_ENGINE_URL=http://localhost:8085 -DAPPSENSOR_CLIENT_APPLICATION_ID_HEADER_NAME=X-Appsensor-Client-Application-Name2 -DAPPSENSOR_CLIENT_APPLICATION_ID_HEADER_VALUE=myclientapp -DAPPSENSOR_WEB_SOCKET_HOST_URL=ws://localhost:8085/dashboard -Dspring.datasource.url=jdbc:mysql://localhost/appsensor -Dspring.datasource.username=appsensor_user -Dspring.datasource.password=appsensor_pass
  1. Login
  • open your browser to : http://localhost:8084
  • When prompted login with user analyst and password analyst.

This set of instructions should get the demo going for you. If you have problems, please file an issue: https://github.com/jtmelton/appsensor/issues/new.