Skip to content

tarangbhalodia/scala-play-rest-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play REST API

Appendix

Introduction

This application consists of REST APIs to perform CRUD operations using PlayFramework, Scala and Elasticsearch(v6.x) as database.

REST APIs are documented using Swagger.

Tools and Technology

Running

Prerequisite

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 up

This 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 run

Play 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.

Testing

  • To execute tests:
sbt test

Swagger

Author

Tarang Bhalodia

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published