Skip to content

luzcjr/san-juan-scala

Repository files navigation

San Juan Scala

Build Status

Implementation of the board game San Juan by Andreas Seyfarth using Scala, Play and Akka. This project is for study purposes of functional and reactive programming.

Getting Started

Prerequisites

  • jdk 8
  • sbt 1.0.4
  • MongoDB 3.6

Setup

Setup the database in MongoDB, run bin/mongo and:

  1. create the database: use sanJuanScala
  2. create the collection: db.createCollection("sjsCollection", { size: 10000000, max: 15000000 })
  3. create the user and role: db.createUser( {user: "sjsUser", pwd: "somepwd", roles: [ {role: "readWrite", db: "sanJuanScala"} ]} )

Running the application

Using a terminal, go to the project's root folder:

  1. run sbt run
  2. go to http://localhost:9000/

Running the tests

Using a terminal, go to the project's root folder and run sbt test

Built With

Authors

References

  • Functional Programming in Scala by Paul Chiusano and Runar Bjarnason
  • Reactive Web Applications by Manuel Bernhardt

About

Implementation of the board game San Juan in Scala

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published