Skip to content

bernardjason/blogdog

Repository files navigation

To use type

./activator run

visit http://127.0.0.1:9000

First time you will see evolution screen, press "Apply this script"

The play evolution will add a user bernard with a password jason

You will need to log on to add a post.

The project is intended as a small example play application using slick over a sqlite database. It uses a simple ActionBuilder for the authentication

Note that the project shows foreign keys working with sqlite. As well as configuring key in database setup 1.sql you also need this line in application.conf

slick.dbs.default.db.connectionInitSql="PRAGMA foreign_keys = ON"

To prove this works, log in as user "delete" and password "me" (as configured in 1.sql) to blogdog then delete the user via sqlite3 (or similar). Then try and add a post and you will get a database error

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published