Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Val - Edges - API Muncher #29

Open
wants to merge 60 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
d4d34c8
Run rails new
valgidzi Oct 31, 2018
0c1933b
Fix test_helper whitespace
valgidzi Oct 31, 2018
5b9598f
Add action_view initializer
valgidzi Oct 31, 2018
bf1e6c5
Generate RecipesController
valgidzi Oct 31, 2018
6ba458a
Add EdamamApiWrapper
valgidzi Oct 31, 2018
74c39be
Add dotenv gem and configure hidden API id/key
valgidzi Nov 3, 2018
4d6da9a
Add httparty gem
valgidzi Nov 3, 2018
993409d
Add .search class method to EdamamApiWrapper
valgidzi Nov 3, 2018
ca616a8
Add index action to RecipesController
valgidzi Nov 3, 2018
bb5eef3
Add RecipesController#index route
valgidzi Nov 3, 2018
680f75e
Add index view with search form
valgidzi Nov 3, 2018
1515dd3
Add test file for EdamamApiWrapper
valgidzi Nov 3, 2018
90b0c48
Add vcr and webmock gems for testing
valgidzi Nov 3, 2018
94af7f2
Add vcr config to test_helper
valgidzi Nov 3, 2018
5c23604
Add and run EdamamApiWrapper test, generate recipes cassette test file
valgidzi Nov 3, 2018
53bc982
Move recipes cassette to master branch
valgidzi Nov 3, 2018
66eb5db
Move search form to root view and search results to index view
valgidzi Nov 3, 2018
ce30f79
Add will_paginate gem for RecipesController#index
valgidzi Nov 4, 2018
5f5e0b5
Display result images and links, add pagination
valgidzi Nov 4, 2018
dc922f5
Adjust return value of EdamamApiWrapper.search method, update test an…
valgidzi Nov 4, 2018
c6792c3
Remove bad link from index view
valgidzi Nov 4, 2018
d034bb9
.find_recipe method for ApiWrapper
valgidzi Nov 4, 2018
bbc17bf
#show action for RecipesController
valgidzi Nov 4, 2018
e3af8e5
Link to recipe show view
valgidzi Nov 4, 2018
f6a3aa2
Recipes#show route
valgidzi Nov 4, 2018
85798b4
Create recipes#show view placeholder
valgidzi Nov 4, 2018
8857e13
Edamam attribution in footer
valgidzi Nov 4, 2018
10ce6fd
Create Recipe class to handle/refactor API data
valgidzi Nov 4, 2018
239f548
Add private .create_recipe method, use to refactor .search and .find_…
valgidzi Nov 4, 2018
3b6a2b7
Refactor view per new Recipe class
valgidzi Nov 4, 2018
26d49d8
Tests for Recipe class
valgidzi Nov 4, 2018
2ab9d09
.find_recipe raises ArgumentError if invalid id passed in
valgidzi Nov 4, 2018
95e49c2
Tests for .find_recipe and record new cassette
valgidzi Nov 4, 2018
c15ec7c
Tests for RecipesController
valgidzi Nov 4, 2018
e0c1ff9
Create render_404 method for not found pages
valgidzi Nov 4, 2018
53171fc
#show action calls render_404 if recipe id invalid
valgidzi Nov 4, 2018
5f19af1
Remove ArgumentError logic from .find_recipe method
valgidzi Nov 4, 2018
d77299c
Remove ArgumentError logic from Recipe class and update tests
valgidzi Nov 4, 2018
f3f9393
Change .find_recipe to return empty recipe instance for bad id, updat…
valgidzi Nov 4, 2018
0d205db
.find_recipe returns nil for bad id
valgidzi Nov 4, 2018
f6da6c0
Adjust .find_recipe tests for return nil logic, record new cassette
valgidzi Nov 4, 2018
4216ca9
New test for #show - calls render_404 if @recipe nil
valgidzi Nov 4, 2018
f72735d
Change app name, link to Google fonts stylesheet
valgidzi Nov 5, 2018
c39dd8d
Add Bootstrap class styles, insert tags for CSS
valgidzi Nov 5, 2018
56bdcd3
CSS for root page
valgidzi Nov 5, 2018
09b9eac
Move search form to partial
valgidzi Nov 5, 2018
37d80a4
Create partial for header search bar
valgidzi Nov 5, 2018
4ca188c
Render header partial in index view
valgidzi Nov 5, 2018
e217a2b
Add styling for header
valgidzi Nov 5, 2018
2d128e9
Format recipes as cards, create flex container
valgidzi Nov 5, 2018
2c30b00
Style recipe cards and layout with flexbox
valgidzi Nov 5, 2018
381b1d9
Pagination formatting and styling
valgidzi Nov 5, 2018
256f530
New recipe parameter - url, for show view link
valgidzi Nov 5, 2018
8465f8c
Tags for format and styling
valgidzi Nov 5, 2018
09840ba
Styles and layout for recipe show view
valgidzi Nov 5, 2018
0085946
Refactor - move recipes styling out
valgidzi Nov 5, 2018
69abb40
Sticky footer for index view
valgidzi Nov 5, 2018
7ca6e0a
Style and update 'no search match' message.
valgidzi Nov 5, 2018
5c24dcf
Adjust header spacing
valgidzi Nov 5, 2018
3ca060a
Change button text
valgidzi Nov 5, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.
/.bundle

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore uploaded files in development
/storage/*
!/storage/.keep

/node_modules
/yarn-error.log

/public/assets
.byebug_history

# Ignore master key for decrypting credentials and more.
/config/master.key
.env
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby-2.5.1
88 changes: 88 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.5.1'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.1'
# Use postgresql as the database for Active Record
gem 'pg', '>= 0.18', '< 2.0'
# Use Puma as the app server
gem 'puma', '~> 3.11'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'mini_racer', platforms: :ruby

# Use CoffeeScript for .coffee assets and views
# gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use ActiveStorage variant
# gem 'mini_magick', '~> 4.8'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.1.0', require: false

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'dotenv-rails'
gem 'minitest-vcr'
gem 'webmock'
end

group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end

group :test do
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 2.15'
gem 'selenium-webdriver'
# Easy installation and use of chromedriver to run system tests with Chrome
gem 'chromedriver-helper'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

gem 'jquery-rails'
gem 'jquery-turbolinks'
gem 'bootstrap', '~> 4.1.3'
group :development, :test do
gem 'pry-rails'
end

group :development do
gem 'better_errors'
gem 'binding_of_caller'
gem 'guard'
gem 'guard-minitest'
end

group :test do
gem 'minitest-rails'
gem 'minitest-reporters'
end

gem 'httparty'

gem 'will_paginate', '~> 3.1.0'
Loading