Project ini terdiri dari beberapa sub-project :
- config : berisi jdbc.properties, dataSource, transactionManager, dsb
- domain : berisi @Entity dan service interface
- service : berisi @Service dan @Repository
- web : berisi @Controller, HTML, JavaScript, dsb
Dalam project ini, kita pakai beberapa automated test :
-
service : JUnit biasa, tapi pakai failsafe plugin supaya jalannya pada phase integration-test
-
web : rest-assured
Untuk menjalankan projectnya :
-
Siapkan database MySQL
- nama db : belajar_development
- username : root
- password : admin
-
Jalankan mvn clean install di top level folder
-
Masuk ke folder web, kemudian jalankan mvn jetty:run
-
Siap dibrowse di http://localhost:10000
- Koneksi database : edit file
pom.xml
di top level folder, propertydb.driver
,db.url
,db.username
,db.password
- Port Aplikasi : edit file
pom.xml
di top level folder, propertyappserver.port.http
- Context Path : edit file
pom.xml
di top level folder, propertyappserver.deployment.context
- Spring Framework 4.0.0
- Spring Security 3.2.0
- Spring Data JPA 1.4.2
- Hibernate 4.2.6
- Joda Time 2.3
- Logback 1.0.13
- AngularJS 1.2.10
- AngularUI 0.4.0
- Twitter Bootstrap 3.1.0
- jQuery 1.8.3
- Underscore JS 1.5.2
- Build Tool : Maven 3
- Database Schema : Liquibase
- Unit Test Runner : Maven Surefire Plugin
- Integration Test Runner : Maven Failsafe Plugin
- Functional Test : Rest-Assured
- Performance Monitoring : Javamelody
- Application Server : Jetty 6