If you have forked this repo, then connect with Razorops to create your demo pipeline by following the below button
This is an example code to demonstrate how to create Scala based pipeline on Razorops platform.
This application consists of REST APIs to perform CRUD operations using PlayFramework, Scala and Elasticsearch(v6.x) as database.
Once you have above software installed. Download/checkout the project and jump to project directory. Then run below commands to run the application:
docker-compose upThis will start elasticsearch in docker. You can check the status of elasticsearch from your browser by hitting the URL: http://localhost:9200/
Once your elasticsearch is up and running. It's time to start the application.
Run below command to start the application:
sbt runPlay will start up on the HTTP port at http://localhost:9000/. You don't need to deploy or reload anything -- changing any source code while the server is running will automatically recompile and hot-reload the application on the next HTTP request.
- To execute tests:
sbt test
- Swagger documentation of REST APIs can be found at http://localhost:9000/docs/
If you're new to Razorops, feel free to fork this repository and use it to create a project.
.razorops.yaml contains the pipeline code to build and execute the tests for this project. To know more about how to write and customize, refer to the documentation.
It uses Docker-Compose commands to bootstrap the containers and exec into web container to run the tests. Here is the link of the pipeline workflows page.
The code is inspired from scala-play-rest-example and adjusted to incorporated few changes required.