Giter Site home page Giter Site logo

blogdog's Introduction

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

blogdog's People

Contributors

bernardjason avatar

Stargazers

Nattaphoom Chaipreecha avatar flatM avatar mawentao007 avatar

Watchers

James Cloos avatar  avatar

Forkers

luckyfenix

blogdog's Issues

Why doesn't this work?

You should package the database, otherwise I'll just assume it's yet another broken activator template. I thought the whole point of SQLLite is that it doesn't require the effort of Postgres or something bigger. Honestly, I can't understand why you wouldn't ship the db so when you type ./activator run it doesn't explode.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.