A web application for a mock food company that has comprehensive validations and callbacks to ensure information is properly saved and formatted a database.
Food has many reviews, belongs to user and has one attached image
Reviews will belong to foods.
user has many foods
Webpage's Schema
- _1 Be able to see the products with the most reviews
- _Example Input: _
- _Example Output: _
- _1 Be able to see the 3 three most recently added reviews
- _Example Input: _
- _Example Output: _
- _1 Leave a review
- _Example Input: _
- _Example Output: _
- _1 See where the food is from by looking at the food location
- _Example Input: _
- _Example Output: _
- _1 Give a review rating between 1 to 5 stars
- _Example Input: _
- _Example Output: _
- _1 The review's content_body must be between 50 and 250 characters.
- _Example Input: _
- _Example Output: _
- _1 All fields have validation that require the fields be filled out, including review rating
- _Example Input: _
- _Example Output: _
- _1
- _Example Input: _
- _Example Output: _
- _1
- _Example Input: _
- _Example Output: _
- Clone the repo
git clone <website>
- bundle Gems
$bundle install
- database
rake db:create
rake db:migrate
- host app locally
$rails s
- insert localhost with given in terminal into a webpage's URL
localhost:<port number> ---example--- localhost:3000
- Ruby 2.5.0
{This software is licensed under the MIT license}
Copyright (c) 2018 _ Nick Brown _