Initialise a Scala Play project with a MongoDB controller for Feed Service
Compare changes
Files
5- Felipe D'Abrantes authored
@@ -18,7 +18,11 @@ import scala.util.{Success, Failure, Try}
@@ -29,7 +33,7 @@ class MongoDBClient {
To run a Scala Play project locally on Unix system, use the following instruction:
curl -s "https://get.sdkman.io" | bash
sdk install java 11.0.18-amzn
java -version
, you should see the following:openjdk version "11.0.18" 2023-01-17 LTS
OpenJDK Runtime Environment Corretto-11.0.18.10.1 (build 11.0.18+10-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.18.10.1 (build 11.0.18+10-LTS, mixed mode)
sdk install sbt
You should now be ready to run a Scala Play application.
backend-services/feed-service/MongoTestController
, update lines 25-26 with your chosen database/collection names.backend-services/feed-service/
sbt run
.docker-compose up --build
Closes #17 (closed). Closes #18 (closed).