What follows is the stream-of-conciousness and research that lead up to our newest sample room!
So for me 2017/18 is going to include adventures in polyglot.
This will include but will not be only restricted to
Decide on tooling.
- scala is the language.
- sbt is the build tool.
- giter8 to set up starter directories.
- play is the Websocket Framework.
- ensime is the plugin for emacs.
ensimelooks fun as a development environment.
Learn to stop hating and love regexes
- Learn about how the play framework works with json
- Add some code to parse the (roomHello|roomJoin) message and reply correctly.
- add websocket chat response
- hack up some room replies when home late after midnight
- tidy up a bit, make the code space a bit more cozy
- start working on “room is running page”, which leads to having to understand
- realise that you need bootstrap to make it look decent
- using bootstrap, make a your room is running page with test buttons, to test web socket calls.
ooh, its getting addictive to play with the bootstrap
- make it possible to edit preformed test message, or send arbritary message in the tests provided on the page.
- learn that in bootstratp 1 == 12 so that the room test screen flows responsively.
stay up until 3am refactoring code unrelated to this, but in Scala. So all the ensime skillz gained were useful, and got to use partial functions and currying. w00t!
oops… fix repo name from
- enter the whale which has its own native sbt plugin.
- add a secret to conf, using well something from here, not that secret if its in github though, is it? also allow the app to run on any host. also allow web socket calls on any host.
- woohoo and we have docker for the room.. so simple, no docker files. Yay!
- so room is now running locally, and test screen works.. almost ready to publish image to clouds and connect up to gameon!
- add license
- upload image to dockerhub : ilanpillemer/sample-scala-room
- install bluemix command line
- copy image from docker hub to bluemix
- still have one more ip address available on free tier at blue mix, so use that and start container
- though no more free ones left now… :(
- http://126.96.36.199:9000/ is up and running…
- register room in gameon!
- go to room and see it working. (roomid: 3a4fb6dee190696852882ba3e78921a4)
- add the proforma stuff to the README
- job done