Scala Rest API for managing users, tips, giveaways and polls for a streamer.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Java
- SBT
Make sure a sqlite database file is available in db
directory.
Note: You can also edit the database URI by editing conf/application.conf
file
sbt run
There is two ways for running application in prod mode.
The first one, by using this command:
sbt runProd
And the other one, by creating a binary which contains application
sbt dist
Look at the folder target/universal
, there is a zip file. Unzip it and change directory to the created folder. Then, run application by using this command:
./bin/twitch-alerts -Dslick.dbs.default.db.url=jdbc:sqlite:/Users/walkoss/Workspace/ESGI/4IBD/Scala/TwitchAlerts/db/db.sqlite
Note that we must specify the sqlite database URI. Change it.
In order to run tests, run:
sbt test
Make sure your are in root directory.
A postman collection is available at root directory twitch_alerts_postman.json
. Import it to get all possible requests.
- Play Framework - Scala web framework
- Slick - Functional Relational Mapping for Scala
- IntelliJ IDEA - IDE