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 Repo is Here.
Install docker from here.
docker pull hiralbest/anagrams:production
docker run -p 8080:8080 hiralbest/anagrams:production
java -version
mvn -version
- Build jar file using maven. Following command will run all unit and integration tests, and build jar file in target folder.
mvn clean install
- Run application
java -jar target/*.jar
You can access API endpoints using swagger from http://localhost:8080/swagger-ui.html.