Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/galargh/task-scala
oratio's test assignment
https://github.com/galargh/task-scala
Last synced: 17 days ago
JSON representation
oratio's test assignment
- Host: GitHub
- URL: https://github.com/galargh/task-scala
- Owner: galargh
- License: other
- Created: 2016-08-01T05:05:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-09T10:16:15.000Z (over 8 years ago)
- Last Synced: 2024-12-20T03:11:16.487Z (23 days ago)
- Language: Scala
- Homepage:
- Size: 1 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scala Task oratio
## Installation
1. Install either [sbt](http://www.scala-sbt.org/0.13/docs/Setup.html) or [activator](https://www.playframework.com/documentation/2.5.x/Installing)
2. Run with `sbt ~run` or `activator ~run`## Task
The main route is `/task/:actor`, where `:actor` is a string parameter. if `:actor` is "list", the `ListActor` should be called, if `:actor`
is "user" the `UserActor` should be called. A optional GET parameter called `param` can be passed to perform various actions on this actors.e.g.
`GET /task/list` will return the list from ListActor as it is
`GET /task/list?param=sum` will return the sum of the list from ListActor
...More information can be found within the `ListActor` and `UserActor` class.
## Controllers
- HomeController.scala:
Main entry point, contains the Action for the task.
## Actors
- ListActor.scala:
An actor containing a list. It expects various parameters to perform actions on this list.
- UserActor.scala:
An actor containing a list of User case classes. It expects various parameters to perform actions on this list.