Skip to content

Oneconsult/Modul-264-Secure-DevOps-JavaApp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Damn Vulnerable Java Application

Quick Start

Install Docker and Docker Compose.

docker-compose up

Navigate to http://localhost:8080

To update image

docker-compose build

Requirements

  • Java 1.7+
  • Maven 3.x
  • MySQL Server

Configuration

Database

Create MySQL database and credentials and configure the same in:

./src/main/webapp/WEB-INF/config.properties

Schema Import

Import the schema into MySQL database:

$ mysql -u USER -pPASSWORD dvja < ./db/schema.sql

Build

$ mvn clean package

The deployable war file is generated in targets directory.

Run with Jetty

$ mvn jetty:run

This will start the Jetty server on port 8080.

Deploy in Tomcat Server

  • Build app
  • Copy targets/dvja.war to Tomcat webapps directory
  • To serve as root application, copy as ROOT.war to Tomcat webapps directory.

About

Damn Vulnerable Java (EE) Application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 34.5%
  • SCSS 32.8%
  • Less 32.4%
  • Other 0.3%