Webentwicklung mit dem Play Framework
By Remo Schildmann and Yann Simon
()
About this ebook
Related to Webentwicklung mit dem Play Framework
Titles in the series (100)
Java EE Security Rating: 0 out of 5 stars0 ratingsIT Wissensmanagement: Theorie und Praxis Rating: 0 out of 5 stars0 ratingsServiceorientierte Architektur: Anforderungen, Konzeption und Praxiserfahrungen Rating: 0 out of 5 stars0 ratingsJavaScript auf dem Server Rating: 0 out of 5 stars0 ratingsF#: Ein praktischer Einstieg Rating: 0 out of 5 stars0 ratingsAlgorithmen: Grundlagen und Implementierung Rating: 0 out of 5 stars0 ratingsHTML5 Security Rating: 0 out of 5 stars0 ratingsBig Data: Technologiegrundlagen Rating: 0 out of 5 stars0 ratingsHTML5 für Mobile Web Rating: 0 out of 5 stars0 ratingsAmazon Web Services für .NET Entwickler Rating: 0 out of 5 stars0 ratingsSharePoint-Entwicklung für Einsteiger Rating: 0 out of 5 stars0 ratingsUX Design für Tablet-Websites: Ein Überblick Rating: 0 out of 5 stars0 ratingsJavaScript für Eclipse-Entwickler: Orion, RAP und GWT Rating: 0 out of 5 stars0 ratingsEinstieg in Google Go Rating: 0 out of 5 stars0 ratingsNutzeraspekte in Suchmaschinen: Komponenten für eine gelungene Usability-Gestaltung Rating: 0 out of 5 stars0 ratingsTFS 2012 Versionskontrolle: Grundlagen, Check-In Policies und Branch-Modelle Rating: 0 out of 5 stars0 ratingsApache Tapestry: Einstieg in die komponentenorientierte Webentwicklung Rating: 0 out of 5 stars0 ratingsErfolgreiche Spieleentwicklung: OpenGL, OpenAL und KI Rating: 0 out of 5 stars0 ratingsBig Data: Executive Briefing Rating: 0 out of 5 stars0 ratingsNFC: Near Field Communication für Android-Entwickler Rating: 5 out of 5 stars5/5OAuth 2.0: Client & Server Rating: 0 out of 5 stars0 ratingsGeolocation mit PHP: Foursquare-API, Google Places & Qype Rating: 0 out of 5 stars0 ratingsVaadin Schnelleinstieg Rating: 0 out of 5 stars0 ratingsTFS 2012 Anforderungsmanagement: Work Items und Prozessvorlagen Rating: 0 out of 5 stars0 ratingsMobile Business: Was Entscheider morgen wissen müssen Rating: 0 out of 5 stars0 ratingsWebentwicklung mit dem Play Framework Rating: 0 out of 5 stars0 ratingsErfolgreiche Spieleentwicklung: OpenCL Rating: 0 out of 5 stars0 ratingsZend Framework 2: Für Einsteiger und Umsteiger Rating: 0 out of 5 stars0 ratingsSkalierbare Softwaresysteme: Design, Betrieb und Optimierungspotenziale Rating: 0 out of 5 stars0 ratingsÜberzeugende Präsentationen: Konzeption, Technik und Design Rating: 0 out of 5 stars0 ratings
Related ebooks
ASP.NET Core: Eine Einführung Rating: 0 out of 5 stars0 ratings.NET Core 1.0 und 1.1: Entwicklung mit den Core-Produkten Rating: 0 out of 5 stars0 ratingsSharePoint Kompendium - Bd. 13 Rating: 0 out of 5 stars0 ratingsVaadin mit Eclipse, Clojure und OSGi Rating: 0 out of 5 stars0 ratingsDie Serverwelt von Node.js Rating: 0 out of 5 stars0 ratingsSoftwarequalität in PHP-Prozessen: Installation und Betrieb eines Jenkins-Servers Rating: 0 out of 5 stars0 ratingsJavaFX Rendering & 3D Rating: 0 out of 5 stars0 ratingsJava EE 6: Enterprise-Anwendungsentwicklung leicht gemacht Rating: 0 out of 5 stars0 ratingsModerne Webanwendungen mit AngularJS Rating: 0 out of 5 stars0 ratingsPHP für WordPress: Themes und Templates selbst entwickeln Rating: 0 out of 5 stars0 ratingsZend Framework 2: Für Einsteiger und Umsteiger Rating: 0 out of 5 stars0 ratingsApps mit Azure Rating: 0 out of 5 stars0 ratingsJava FX - Status Quo: Status Quo Rating: 0 out of 5 stars0 ratingsCDI - Dependency Injection in Java EE 7: Dependency Injection in Java EE 7 Rating: 0 out of 5 stars0 ratingsBenutzerhandbuch zu ProjectLibre 1.9.3 Rating: 0 out of 5 stars0 ratingsPowerShell: Grundlagen für .NET-Entwickler Rating: 0 out of 5 stars0 ratingsJavaScript und Ajax: Das Praxisbuch für Web-Entwickler Rating: 0 out of 5 stars0 ratingsSoftware Development Trends: Wegweisende Beiträge für eine neue IT: Wegweisende Beiträge für eine neue IT Rating: 0 out of 5 stars0 ratingsWindows Phone 8.1: Alles Wissenswerte für Entwickler Rating: 0 out of 5 stars0 ratingsVaadin Schnelleinstieg Rating: 0 out of 5 stars0 ratingsEclipse SmartHome und Smart Office: Intelligente Lösungen in der Heimautomation Rating: 0 out of 5 stars0 ratingsSpring Boot und Spring Cloud Rating: 5 out of 5 stars5/5Aufsetzen, Testen und Betrieb einer Android-App Rating: 0 out of 5 stars0 ratingsApache OFBiz: Schnellstarterbuch Rating: 0 out of 5 stars0 ratingsBlackBerry-10-Entwicklung mit der Momentics IDE Rating: 0 out of 5 stars0 ratingsSharePoint Kompendium - Bd. 16 Rating: 0 out of 5 stars0 ratingsVue.js kurz & gut Rating: 0 out of 5 stars0 ratingsSpring Boot 2: Moderne Softwareentwicklung mit Spring 5 Rating: 0 out of 5 stars0 ratingsGeräteübergreifende Entwicklung mit RAD Studio Rating: 0 out of 5 stars0 ratingsSprachenkompendium: Vala, Go und Rust Rating: 0 out of 5 stars0 ratings
Internet & Web For You
Joomla 4.0 logisch!: Einfache Webseitenerstellung ohne Programmierkenntnisse Rating: 0 out of 5 stars0 ratingsWas kommt. Was geht. Was bleibt.: Kluge Texte über die wichtigsten Fragen unserer Zeit Rating: 0 out of 5 stars0 ratingsSEO mit Google Search Console: Webseiten mit kostenlosen Tools optimieren Rating: 0 out of 5 stars0 ratingsSo findest du den Einstieg in WordPress: Die technischen Grundlagen zu Installation, Konfiguration, Optimierung, Sicherheit, SEO Rating: 0 out of 5 stars0 ratingsUX Design - Definition und Grundlagen: Definition und Grundlagen Rating: 4 out of 5 stars4/5Google Platz 1: Lernen Sie von einem der führenden Suchmaschinenoptimierer Deutschlands Rating: 0 out of 5 stars0 ratingsPHP für WordPress: Themes und Templates selbst entwickeln Rating: 0 out of 5 stars0 ratingsEinführung ins Darknet: Darknet ABC Rating: 0 out of 5 stars0 ratingsSECURITY AWARENESS: Leitfaden zur IT-Sicherheit für Anwender Rating: 0 out of 5 stars0 ratingsUX-Missverständnisse: Was sich User wirklich wünschen Rating: 0 out of 5 stars0 ratingsSchnelleinstieg WordPress SEO: Einstellungen, Keywords, Plug-ins und Strategien für optimales SEO Rating: 0 out of 5 stars0 ratingsReact lernen und verstehen Rating: 0 out of 5 stars0 ratingsDas kleine Hypnose Einmaleins - Alles was Sie schon immer über die Hypnose wissen wollten von Ewald Pipper vom Hypnoseinstitut Rating: 0 out of 5 stars0 ratingsPHP 7 und MySQL: Ihr praktischer Einstieg in die Programmierung dynamischer Websites Rating: 0 out of 5 stars0 ratingsMQTT im IoT: Einstieg in die M2M-Kommunikation Rating: 0 out of 5 stars0 ratingsDas Facebook-Marketing-Buch Rating: 4 out of 5 stars4/5Das Prezi-Buch für spannende Präsentationen Rating: 0 out of 5 stars0 ratingsAndroid Security: Von Fake-Apps, Trojanern und Spy Phones Rating: 0 out of 5 stars0 ratingsDer Content Faktor: Schreiben Sie Texte, die gefunden und gelesen werden Rating: 0 out of 5 stars0 ratingsUX Design für Tablet-Websites: Ein Überblick Rating: 0 out of 5 stars0 ratingsChatGPT Plus: Durchstarten in eine neue Welt: Entdecken Sie Künstliche Intelligenz mit ChatGPT Plus und GPT-4 Rating: 0 out of 5 stars0 ratingsWir machen dieses Social Media Rating: 0 out of 5 stars0 ratings30 Minuten Metaverse Rating: 0 out of 5 stars0 ratingsShopware 6 Handbuch Rating: 0 out of 5 stars0 ratingsSEO Crashkurs - 10 Schritte zum Erfolg auf Google Rating: 0 out of 5 stars0 ratingsDas Buch zu Google Ads: Strategien für kleine und mittlere Unternehmen Rating: 0 out of 5 stars0 ratingsProgrammieren lernen mit Python 3: Schnelleinstieg für Beginner Rating: 0 out of 5 stars0 ratingsPR im Social Web: Das Handbuch für Kommunikationsprofis Rating: 0 out of 5 stars0 ratingsJavaScript kinderleicht!: Einfach programmieren lernen mit der Sprache des Web Rating: 0 out of 5 stars0 ratings
Reviews for Webentwicklung mit dem Play Framework
0 ratings0 reviews
Book preview
Webentwicklung mit dem Play Framework - Remo Schildmann
Yann Simon, Remo Schildmann
Webentwicklung mit dem Play Framework
ISBN: 978-3-86802-458-6
© 2013 entwickler.press
Ein Imprint der Software & Support Media GmbH
1 Grundlagen
Play ist ein Full-Stack-Webframework – geschrieben von Webentwicklern für Webentwickler. Der Name ist Programm: Geradezu spielend lassen sich einfache, aber auch komplexe Webanwendungen entwickeln. Und dabei blickt das Framework auf eine inzwischen mehr als fünfjährige Entwicklungsgeschichte zurück. Inzwischen hat Play Einzug in den Typesafestack [1] gehalten.
Wer kennt das nicht? Ein neues Webprojekt, die Ziele sind definiert, die Entwicklermannschaft steht bereit, technologisch ist man sich einig – JSF, CSS, JavaScript, Spring, Hibernate, Datenbank XY (oder Ähnliches). Gebaut wird mit Maven und entwickelt mit der Lieblings-IDE. Am Ende steht ein fertiges Produkt, und es funktioniert. Wozu also ein weiteres Framework, das am Ende auch nichts anders tut als die Entwicklung eines funktionierenden Produkts zu unterstützen bzw. zu erleichtern? Wäre die Vorstellung, dass alle möglichen Funktionen der Webapplikation in einer zentralen Konfiguration verwaltet und dann noch zur Compilezeit auf gültige Verweise (Navigationspfade) geprüft werden, nicht interessant? Oder wie wäre es mit der Idee, nach der Installation alle für eine Webapplikation notwendigen Komponenten an der Hand zu haben, also den kompletten Stack? Sollte eine testgetriebene Entwicklung, gerade bei komplexeren Applikationen, nicht gängige Praxis sein? Hier bringt Play mit seiner Testinfrastruktur inklusive Selenium-Tests alle notwendigen Werkzeuge mit. Oder wie wäre es mit der Möglichkeit eines automatischen Hot Deployments? Das sind nur einige Punkte. Interessiert? Dann kommen Sie mit auf eine Erkundungstour.
Dieses durch [2] inspirierte Tutorial zeigt, wie in Play 2 ganz praktisch Webapplikationen erstellt werden. Dabei werden alle Bereiche einer Play-Anwendung beleuchtet: Validierung, Fehlerbehandlung, Security, automatisierte Tests etc. Unterschiede zu Play 1 oder anderen Frameworks spielen dabei keine Rolle.
Installation, Projekterstellung und IDE-Integration
Die Installation geht – wie hätte es anders sein sollen? – spielerisch von der Hand. Nach dem Download der ZIP-Datei (wir verwenden die Version 2.0.4) [3] wird diese entpackt (Spaces im Pfad nach Möglichkeit vermeiden). Für ein komfortableres Arbeiten sollte der Ordner in den PATH (des Systems) aufgenommen werden. Ein JDK (Version 6 oder höher) muss sich ebenfalls auf dem System befinden. Wenn wir nun in einer Konsole play eingeben, sollten wir eine Rückmeldung vom Framework bekommen – damit ist Play installiert.
Nun können wir ein neues Projekt anlegen. Dazu wechseln wir in der Konsole in den Pfad, in dem wir unser Projekt erzeugen wollen (bspw. D:\Projekte\WebApps). Mit play new
Abbildung 1.1: Erstellung der TodoList-Applikation
Gratulation! Sie haben Ihre erste lauffähige Play-Applikation erstellt. Glauben Sie nicht? Wechseln wir in das erstellte Verzeichnis (TodoList) und öffnen eine Play-Console (mit play). Hier starten wir die Applikation mit run in einem Webserver auf Port 9000. Play bringt Netty als Webserver mit. Im Browser können wir unsere Applikation mit dem URL http://localhost:9000 erreichen. Und das Beste: