Author: Toni Rib
Rails single-page application that uses JavaScript and jQuery to set up CRUD functionality for creating and storing ideas. It relies heavily on jQuery's AJAX method to make calls internal API endpoints to get, store, update, and delete data. The point of this project was to practice client-side development instead of rely on Rails for everything.
The application is fairly simple and straightforward to use.
- Enter an idea title in the box at the top
- Enter information about idea in the body section box at the top
- 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 edit button
- Edit the title and/or body
- Click on the save changes button or click anywhere else on the page
- Click on the delete button next to the idea
- Start typing text into the search box. If the text matches any part of an idea's body or title, the idea will be shown. Otherwise, it will be hidden.
- To clear the search, press the clear button
- Click on the sort by quality button to sort ideas descending by their quality level
- Click it again to sort ascending by quality level
This application uses RSpec for testing along with Selenium for JavaScript testing.