Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.08 KB

README.md

File metadata and controls

35 lines (29 loc) · 1.08 KB

Anagrams

This is a spring boot application which has following 2 endpoints.
GET /anagrams/{s1} : Returns all possible anagrams of the string.
GET /anagrams/{s1}/{s2} : Returns true if s1 and s2 is anagram, else return false.

Docker Repository

Docker Repo is Here.

Run application using docker image

Install docker from here.

docker pull hiralbest/anagrams:production
docker run -p 8080:8080 hiralbest/anagrams:production

Build and run locally

  1. Install Java and Maven.
  2. Make sure java and maven is in your classpath using following commands
java -version
mvn -version
  1. Build jar file using maven. Following command will run all unit and integration tests, and build jar file in target folder.
mvn clean install
  1. Run application
java -jar target/*.jar

UI for testing API

You can access API endpoints using swagger from http://localhost:8080/swagger-ui.html.