Skip to content

werval/werval-sample-beerdb

Repository files navigation

Beer Database - Werval Sample Application

This sample is backed by an EclipseLink JPA 2 store for breweries and beers. It expose a JSON api consumed by an AngularJS front-end.

To run in development mode: gradle devshell

To run in production mode: gradle start

To run tests: gradle check

To build a production distribution: gradle distZip

To see all available tasks: gradle tasks

In development and test modes, the JPA 2 store is an in-memory H2 database. A production configuration that use PostgreSQL is provided.

Database schema migration is done using Liquibase. Initial data and test fixtures are loaded using Fixy.

Acceptance tests against the JSON api are implemented using rest-assured. A JMeter scenario to load-test the JSON api is provided.

Acceptance tests against the AngularJS front-end are implemented using FluentLenium.

BeerDB UI Tests

The application is deployed live at werval-beerdb.herokuapp.com.