Skip to content

bookproject is a book information retrieval application

Notifications You must be signed in to change notification settings

yannisf/bookproject

Repository files navigation

bookproject

Trivial application to retrieve bibliographic information from providers

Spring Boot

Build and Run

Build
$ ./gradlew -q clean build
Run boot app from gradle
$ ./gradlew -q bootRun
Debug boot app from gradle
$ ./gradlew -q bootRun -Pdebug

then attach debugger to port 8000.

Build war and run
$ ./gradlew -q clean bootWar
$ java -jar build/libs/bookproject-boot.war
Note
To skip the tests pass -x test to gradle

Use

Basic UI
http://localhost:8080/
Invoke the REST API
http://localhost:8080/search?isbn=9789600316698
Application information
http://localhost:8080/actuator/info
Note
Provided through the actuator module

Database

The application uses the H2 database at its persistence layer. Before starting the application an H2 database in server mode must be running.

Start H2
$ java -cp h2.jar org.h2.tools.Server

Deploy on Tomcat

The bundled application can be deployed on a Tomcat, through the cargo plugin:

$ ./gradlew clean war cargoReDeployRemote
Note
Tomcat and an H2 database must be up and running. Tomcat deployer configuration is in the root build.gradle.

Reports

Test report

Using this custom task, an aggregated test report fromm all projects is generated in root project, under build\reports\tests.

$ ./gradlew -q testReport
Generate Javadoc

Using this custom task, aggregated Javadoc from all project is generated in root project, under build/docs/javadoc.

$ ./gradlew -q alljavadoc

About

bookproject is a book information retrieval application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published