Admin page example with Play2.4, Slick3.0, play2-auth.
Template use SBAdmin2. (exclude Flot charts and Morris.js charts, apply Bootswatch Slate)
- PostgreSQL install very easy!
- Bower
-
Clone repository
git clone https://github.com/laughingman7743/play24-slick3-auth-example.git
-
Create database and user
Execute
play24-slick3-auth-example/conf/evolutions/default/create_dtabase_user.sql
(replace YOUR_DATABASE, YOUR_ADMIN_USER, YOUR_USER, YOUR_PASSWORD) -
Fix
play24-slick3-auth-example/conf/application.conf
Replace database name, user name, password.
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"
-
Install Bower component
$ cd play24-slick3-auth-example $ bower install
-
Run application
$ activator run
-
Database evolution
Access to http://localhost:9000/ on your browser and click
Apply this script now!
. -
Login
email: [email protected] password: password
Enjoy!