Play Framework @routes.Assets.at Compilation Error

Alright, to sum up the solution: Play lets you serve your assets in two different ways. The old fashioned and the new fingerprinted method introduced with sbt-web. In either case make sure you use right call in your view files: Fingerprinted assets This is the recommended way to serve assets in play. Fingerprinted assets make … Read more

Spray, Akka-http and Play, Which is the best bet for a new HTTP/REST project

Spray is production ready, but the development team (Mathias Doenitz) works for Typesafe on Akka-http now. The status of Akka-http is “development preview”. There are vague promises of a full release “within a few months”, but nothing you can take to the bank. Edited 29-July-2015: The status of Akka-HTTP is now “release candidate” with version … Read more

Debug Playframework in Eclipse

As of Play 2.0, the eclipse folder and launchers are no longer generated when you run play eclipsify. After running play eclipsify, you can debug your project in Eclipse as follows: In a console outside of eclipse, run play debug run. In Eclipse, right-click your project, then choose Debug As -> Debug Configurations… Right-click Remote … Read more

Separate back-end and front-end apps on same domain?

You are gonna to dig yourself… deep 🙂 Simplest and most clean approach with no any doubt is creating a single application serving data for both, BE and FE, where you differ response (JSON vs HTML) by the URL, pseudo routes: GET /products/:id controllers.Frontend.productHtml(id) GET /backend/products/:id controllers.Backend.productJson(id) Benefits: single deployment (let’s say to Heroku) name … Read more