This project is my first contact with the scala world. It can be improved in many ways. If you have any suggestion please don't hesitate to contact me.
In order to avoid complex setups, a Vagrant box with the necessary provisioning to run this project is provided in the mysqldb folder. Note that this is completely optional and you can also use your own database.
The requirements to run the box are as follows:
- Have Vagrant installed
- Port 3306 available
-
Download the project
git clone https://github.com/rcoedo/scala-akka-spray-slick
-
Go to the mysqldb folder and run
vagrant up
inside the project directory. This will download the image and install everything. -
go to the root folder and run
sbt run
Open http://localhost:8080/api/messages
and http://localhost:8080/api/message/1
in your browser
- Tests
- Logging