/word_count

Epicodus

Primary LanguageRuby

Word Count

By Sam Park

Objectives

Create a website that uses a method to return how frequently a word appears in a given string. The user should be able to input both the word and the string of words to check.

Your code will be reviewed for the following objectives:

  • Specs have complete coverage for the behaviors that need to be tested.
  • Specs are passing.
  • Logic is easy to understand.
  • Code has proper indentation and spacing.
  • Variable names are descriptive.
  • Integration specs are passing.
  • Sinatra application uses views, instance variables and forms.
  • Good Git documentation (regular commits with clear, consistently formatted messages and a complete README).
  • Message syntax should complete the sentence "This commit will..."; for example "update image files on the home page".
  • README should include application name, author name, description, setup instructions, licensing.
  • Application is deployed to Heroku (include the link in your README).
  • Discuss the flow of your code and the concepts behind it with an instructor using correct terminology.

Specifications

Behavior Input Outcome
Allow user to type in string into form box X X
Show the original string inputted by user "Sam I am. Sam eats green eggs and ham." Sam I am. Sam eats green eggs and ham.
Find words that were input more than once :number X
Find how many times multiple-inputted words were input :number X
Generates which words were inputted more than once "Sam I am. Sam eats green eggs and ham." Repeated words: Sam
Generates the number of times multiple-inputted words were input "Sam I am. Sam eats green eggs and ham." Sam: 2 times

Technologies Used

  • Markdown
  • HTML
  • Ruby
  • Sinatra
  • Pry
  • Heroku
  • CSS
  • Bootstrap

Setup/Installation Requirements

Option #1

  • Clone this repository
  • Open using Sinatra

Option #2

  • Click on given (upper-toonie-64749.herokuapp.com)

Known Bugs

  • Protozoa
  • Porifera
  • Nemathelminthes
  • Mollusca
  • Arthropoda

This software is licensed under the MIT License and the Mind Your Own Beeswax license.

Copyright © 2016 Sam Park