Rails single-page application that uses JavaScript and jQuery to set up CRUD functionality for creating and storing ideas. AJAX calls hit internal API endpoints to get, store, update, and delete data.
AJAX, JavaScript, jQuery, Selenium
- Enter any portion of a title or description to see all ideas that meet that criteria.
- Enter an idea title & description
- Click on the save button
- New ideas have a default level of 'swill' but can be changed to 'plausible' or 'genius' by hitting the thumbs up and thumbs down icons next to the idea.
- Additionally, if an idea's body has more than 100 characters, the body will be truncated to the closest word that is less than the 100 character limit and an ellipses will be added to the end.
- Click on the delete button next to the idea
- Double click on the title or body
- Edit the title and/or body
- Press enter
-
qualityIdea : The promote and demote methods were slightly different, but I practiced DRY principles and made the method dynamic.
-
searchIdea : Well named, human-readable, abstracted code.
-
Controller Testing : Specific, realiable controller testing for create, update, and delete.
If you wish to download the project and set it up locally, run the following commands:
- git clone https://github.com/stevepentler/IdeaBox.git
- bundle
- Run rails s in another terminal pane to start the actual Rails server
- visit your localhost