ref: https://github.com/spray/spray-template
This projects provides a starting point for your own microservice with spray including following libraries and frameworks
- subcut
- cashbah, salat
- spray
- specs2
- akka test kit
Data base
- mongoDB
Follow these steps to get started:
-
Git-clone this repository.
$ git clone https://github.com/roshane/spray-rest-sample.git my-project -
Change directory into your clone:
$ cd my-project -
Launch SBT:
$ ./sbt -
Compile everything and run all tests:
> test -
Start the application:
> re-start -
Browse to http://localhost:8080
-
Stop the application:
> re-stop -
Start hacking com.boot.ApiService
-
to seed you mongo with intial data just run following script
./save_init_data.sh
> assembly