8

Play-Slick-PostgreSQL: Reactive Play application with Slick extensions for Postg...

 2 years ago
source link: https://blog.knoldus.com/playing-slick-pg/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Reading Time: < 1 minute

playing-slick-pg

Building Reactive Play application with Slick extensions for PostgreSQL

This is a classic CRUD application, backed by a PostgreSQL database. It demonstrates:

  • Handling asynchronous results, Handling time-outs
  • Achieving, Futures to use more idiomatic error handling.
  • Accessing a JDBC database, using Slick.
  • Achieving, table pagination and sorting functionality.
  • Embedded JS & CSS libraries with WebJars.
  • Play and Scala-based template engine implementation
  • Integrating with a CSS framework (Twitter Bootstrap 3.1.1). Twitter Bootstrap requires a different form layout to the default one that the Play form helper generates, so this application also provides an example of integrating a custom form input constructor.
  • Bootswatch-Yeti with Twitter Bootstrap 3.1.1 to improve the look and feel of the application

Instructions :-


  • Install PostgreSQL, if you do not have it already. You can get it from here
  • Create a database called test
  • To run the Play Framework, you need JDK 6 or later
  • Install Typesafe Activator if you do not have it already. You can get it from here
  • Execute ./activator clean compile to build the product
  • Execute ./activator run to execute the product
  • playing-slick-pg should now be accessible at localhost:9000

References :-



About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK