Skip to content

This is a spring boot application regarding anagram strings.

Notifications You must be signed in to change notification settings

hiralbest/anagrams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This is a spring boot application regarding anagram strings.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published