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
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 -
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" -
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!