A Jersey based REST Http Utility to search for a given word inside a file. Created using Maven.
Welcome to HTTP based word count utility. This project gives you an utility where you can find out the occurence of a particular word inside a text file.
Please follow the below steps to get the project started.
- Create a folder name wordcount.
- Initialize the folder with git init
- Add a git remote for this project as git remote add "remotename" https://github.com/ernitishkumar/wordcount.git
- Make a pull request using this remote. The project will get cloned at your end.
- Now navigate to src\main\java\com\nitish\freecharge\utility folder from your current folder.
- Open GlobalResources.java file change the value of FILE_PATH with the text file containing valid english words to be searched for words.
- navigate back to wordcount folder
- Run following command "mvn compile"
- Then run "mvn clean package" . This command will package the project into a jar file with name nitishsAwesomeProject.jar in target forlder of the current directory.
- Home page will open with an input box for the word to be search and click get count button.
- On next page you will get the count of the provided word in json format.
- Subsequently you can change query="with any random word" and hit enter to get the count.