Skip to content

carsonpun/play_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

A play framework (2.5.0) example which does the follows:

(original features on 2016/03/19)

  1. upon visiting the webpage, a websocket will be created.
  2. users can put in a url (need to prefixed with http://)
  3. the url is sent to webserver.
  4. webserver will read the content from the url, fix any HTML ill-form, and extract the title string.
  5. the extracted title string will be send back to the client through the same websocket
  6. the client side will show the resultant title string

(updated on 2016/03/20)

  1. whole client side is recoded using angularjs and bootstrap3
  2. websocket is handled in the angularjs application

All message communications on the websockets are in json. (using the play-json library)

To run

  1. activator dist which will give you a production version, ./target/universal/play-scala-1.0-SNAPSHOT.zip
  2. unzip ./target/universal/play-scala-1.0-SNAPSHOT.zip, you will see play-scala-1.0-SNAPSHOT/
  3. To deploy the webserver app, run play-scala-1.0-SNAPSHOT/bin/play-scala

About

An example of Play! framework (in Scala)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published