Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

laughingman7743/play24-slick3-auth-example

Repository files navigation

play24-slick3-auth-example

Admin page example with Play2.4, Slick3.0, play2-auth.
Template use SBAdmin2. (exclude Flot charts and Morris.js charts, apply Bootswatch Slate)

Requirements

Usage

  1. Clone repository

    git clone https://github.com/laughingman7743/play24-slick3-auth-example.git

  2. Create database and user

    Replace YOUR_DATABASE, YOUR_ADMIN_USER, YOUR_USER, YOUR_PASSWORD in DDL script play24-slick3-auth-example/conf/evolutions/default/create_dtabase_user.sql.
    Execute DDL script from command line.

    psql -f play24-slick3-auth-example/conf/evolutions/default/create_database_user.sql
    
  3. Fix database configuration

    Replace YOUR_DATABASE, YOUR_USER, YOUR_PASSWORD in application.conf play24-slick3-auth-example/conf/application.conf.

    slick.dbs.default.db.url="jdbc:postgresql://localhost:5432/YOUR_DATABASE"
    slick.dbs.default.db.username=YOUR_USER
    slick.dbs.default.db.password="YOUR_PASSWORD"
    
  4. Install Bower component

    $ cd play24-slick3-auth-example
    $ bower install
    
  5. Run application

    $ activator run

  6. Database evolution

    Access to http://localhost:9000/ on your browser and click Apply this script now!.

  7. Login

    email: hoge.fuga@foo.bar
    password: password
    

Enjoy!