It's plain ruby search program from command-line | Linux Terminal
- run ruby search.rb
- run ruby search_api.rb
- run ruby search_json.rb
- run ruby search_json_value.rb
- run rspec spec/* or run bundle exec rspec spec/*
- run ruby search.rb
- run ruby search.rb | for e.g. ruby search.rb search emma
- run ruby search.rb find_duplicates
- bundle install
- run ruby search_api.rb
- two search field is added 1)q = any data 2)field = < full_name / email / id >
- open browser type http://localhost:3000/query
- open browser type http://localhost:3000/query?q=john
- open browser type http://localhost:3000/query?q=john&field=full_name
- open browser type http://localhost:3000/query?q=john&field=email
- open browser type http://localhost:3000/query?q=1&field=id
- ruby search_json.rb
- Enter the path to the JSON file . for eg. ./client/client.json
- Enter the field to search for . for eg. full_name
- ruby search_json_value.rb
- Enter the path to the JSON file . for eg. ./client/client.json
- Enter the field to search for . for eg. full_name
- Enter the value to search for . for eg. john
- Four test cases added 1)spec/client.rb 2) spec/search.rb 3) spec/search_api.rb 4) spec/search_json.rb 5) spec/search_json_value.rb
- run rspec spec/client.rb or spec/search.rb or spec/search_api.rb or spec/search_json.rb or spec/search_json_value.rb
- run bundle exec rspec spec/client.rb or spec/search.rb or spec/search_api.rb or spec/search_json.rb or spec/search_json_value.rb
- run spec/*