Skip to content

helaili/azure-bookstore

Repository files navigation

Reading Time

Reading Time is a web application that lists staff recommended books.

Board Status

Installing

Prerequisites

Reading Time requires Java and Maven. It uses an embedded Tomcat servlet container. To test if you have Java and Maven installed open a terminal and type:

mvn --version

Create a bookstore resource group and a bookstore-app-service-plan service plan in Azure.

Run the following command (need to log in Azure first) and use the JSON output has the value of the AZURE_CREDENTIALS secret

az ad sp create-for-rbac --name "bookstore-review" --role contributor \
                                --scopes /subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$AZURE_RESOURCE_GROUP \
                                --sdk-auth

Running

To run the application:

mvn clean install
sh target/bin/webapp
open http://localhost:8080

To install without running the tests:

mvn -B -DskipTests=true clean install

To run the unit tests:

mvn clean test

To run code coverage checks:

mvn cobertura:check

To create the code coverage report:

mvn cobertura:cobertura
open target/site/cobertura/index.html

To create and view the Maven reports:

mvn site
open target/site/index.html

Contributing

Read the CONTRIBUTING file before contributing to this project.

License

See the LICENSE file for license rights and limitations (MIT).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published