Typesafe Activator

Play Slick Bootstrap3

Play Slick Bootstrap3

yugolf
Source
December 3, 2014
scala playframework slick bootstrap

Activator template for Play Framework and the Slick database and bootstrap3.You can also execute 'slick code generetor' from the top page.

How to get "Play Slick Bootstrap3" on your computer

There are several ways to get this template.

Option 1: Choose play-slick-bootstrap3 in the Typesafe Activator UI.

Already have Typesafe Activator (get it here)? Launch the UI then search for play-slick-bootstrap3 in the list of templates.

Option 2: Download the play-slick-bootstrap3 project as a zip archive

If you haven't installed Activator, you can get the code by downloading the template bundle for play-slick-bootstrap3.

  1. Download the Template Bundle for "Play Slick Bootstrap3"
  2. Extract the downloaded zip file to your system
  3. The bundle includes a small bootstrap script that can start Activator. To start Typesafe Activator's UI:

    In your File Explorer, navigate into the directory that the template was extracted to, right-click on the file named "activator.bat", then select "Open", and if prompted with a warning, click to continue:

    Or from a command line:

     C:\Users\typesafe\play-slick-bootstrap3> activator ui 
    This will start Typesafe Activator and open this template in your browser.

Option 3: Create a play-slick-bootstrap3 project from the command line

If you have Typesafe Activator, use its command line mode to create a new project from this template. Type activator new PROJECTNAME play-slick-bootstrap3 on the command line.

Option 4: View the template source

The creator of this template maintains it at https://github.com/yugolf/play-slick-bootstrap3#master.

Option 5: Preview the tutorial below

We've included the text of this template's tutorial below, but it may work better if you view it inside Activator on your computer. Activator tutorials are often designed to be interactive.

Preview the tutorial

You've just created a simple Play Framework application with the Slick library and Bootstrap3!
This template will help you building a variety of Web applications.
Also you will be able to easily execute the Slick code generator.

View the App

Once the application has been compiled and the server started, your application can be accessed at: http://localhost:9000

Slick code generator

You can execute the Slick code generator from top page.It generate source code from DB schema.
In order to enable source code generation you can specify DB schema you want to have in the application.conf file.
The default value is :

  db.default.url="jdbc:h2:mem:play"

For example, When you specify 'INFORMATION_SCHEMA' to a shema on the top page, you can generate the source code based on the schema.

comments powered by Disqus