/scalaPlayTest

Test repo for testing Scala Play Framework

Primary LanguageScalaOtherNOASSERTION

This is Play-scala-test application
=================================

#### The stack:
- Play Framework 2.4.2
- Scala 2.11.6
- sbt 0.13.5
- PostgreSQL 9.4-1200-jdbc41
- Slick 1.0.1
- HikariCP 2.3.5
- Twitter Bootstrap 3.3.4
- JQuery 1.9.3
- "play-mailer" % "3.0.1",
- Selenium 2.42.2
- webjars (for Bootstrap and JQuery)
- Heroku  (to add)

This file will be packaged with your application, when using `activator dist`.

## Run this app
cd to root dir where this app was git cloned, and then type: activator run

## Configuration passwords
Add secrets.conf in conf/ and in .gitignore , and include secrets.conf in application.conf


## Heroku useful commands
git push heroku master #deploy app
heroku pg:credentials #view pg credentials
heroku config:set DATABASE_URL=postgres://user:password@host:5432/db
heroku config:set slick.dbs.default.db.user=user slick.dbs.default.db.password=password
heroku logs #view logs
heroku config:set S3_KEY=key S3_SECRET=secret

#downloading pg_dump:
heroku pg:backups capture
curl -o latest.dump `heroku pg:backups public-url`

## Heroku useful resources
https://devcenter.heroku.com/articles/getting-started-with-scala#use-a-database
https://devcenter.heroku.com/articles/config-vars
https://toolbelt.heroku.com/windows
https://devcenter.heroku.com/articles/heroku-postgres-import-export
http://edulify.github.io/play-hikaricp.edulify.com/
https://github.com/brettwooldridge/HikariCP#initialization


## Helpful resources
https://www.playframework.com/documentation/2.2.x/ScalaForms
http://www.hawkinsunlimited.com/play-framework-playful-prelaunch-tutorial-part-1/
https://github.com/michaelhawkins/playful-prelaunch/blob/master/app/controllers/Marketing.scala
https://www.playframework.com/documentation/2.3.x/Evolutions
https://www.playframework.com/documentation/2.4.x/ScalaI18N
http://gon.to/2012/11/24/play-framework-2-2-1-scala-with-slick-made-easy-with-example/
https://github.com/mgonto/slick-play2-example