Skip to content

pvoznenko/play-slick-angular-test-example

Repository files navigation

Play Slick AngularJS Bootstrap H2 Tests Example

Build Status

Main goal of this Example is to show how to test Play Framework in memory using H2 and Slick and keep MySQL as main database.

Also contain one-page application RequireJS + AngularJS with Bootstrap, MySQL and Slick.

This is an Example Scala Play application. Application built on Play Framework (Scala), Slick, Webjars, AngularJS, RequireJS, for test using Specs2 that runs in H2 in-memory database.

As base template for application used Marius Soutier's "Example application for Play+AngularJS+RequireJS".

Features

  1. Playframework 2, WebJars, RequireJS and AngularJS together;
  2. In running mode using Slick for work with MySQL;
  3. For testing application using Specs2 and run all tests in H2 in-memory database;
  4. For frontend application using Bootstrap with ngTable and for DatePickers Angular UI Bootstrap.

Installation

Activator

You can get this example through Activator. For more information please use following url that explains how to get this template on your computer step-by-step: https://typesafe.com/activator/template/play-slick-angular-test-example

Configuration

  • Create mysql database
  • Modify config conf/application.conf

Run

To run application, call command:

$ sbt run

Then you can find application on following url: http://localhost:9000/

Run Tests

To run tests, call command:

$ sbt test

Copyright

Copyright (C) 2014 Pavlo Voznenko.

Distributed under the MIT License.

About

Built on Play Framework, Slick, AngularJS, Webjars, RequireJS, using test on H2 in-memory database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published