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

Ditzy Pull Request #2

Open
wants to merge 303 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
303 commits
Select commit Hold shift + click to select a range
6637223
Merge branch 'master' of github.com:pottery123/betsy
cotarg May 5, 2016
cd5a7c4
merge conflict resolved in schema
leahnp May 5, 2016
5c11af6
Merge branch 'master' into leah/merchant_accounts
leahnp May 5, 2016
518b984
Managing merge conflicts
jadevance May 5, 2016
1a77f77
moving the review link to the product detail pages.
cotarg May 5, 2016
fcbf63a
moved review link to product_details so that it would just call on th…
cotarg May 5, 2016
243bf26
amending reviews controller to call on products methods now instead o…
cotarg May 5, 2016
56109c1
Migrated data after merge
jadevance May 5, 2016
efa0d35
Merge branch 'master' into jv-shopping-cart
jadevance May 5, 2016
67732c9
migrated new db
leahnp May 5, 2016
9195c96
Merge branch 'master' into leah/merchant_accounts
leahnp May 5, 2016
e385dd6
added a url column for picture urls.
cotarg May 5, 2016
be5232a
Merge branch 'master' of github.com:pottery123/betsy
cotarg May 5, 2016
35ec5de
updated schema by running db migrate.
cotarg May 5, 2016
ee4c780
trying to add schema so I can push
leahnp May 5, 2016
19aaa69
changed schema to resolve merge conflict
leahnp May 5, 2016
1146a94
updated seed file so columns match table columns.
cotarg May 5, 2016
1075e70
Merge branch 'master' of github.com:pottery123/betsy
cotarg May 5, 2016
3f8a8f6
Wrote a CSV slurpee to take in Rowan's seed data for products.
jadevance May 5, 2016
7345765
ran rake
cotarg May 5, 2016
aea2d6e
working on integrating reviewing products.
cotarg May 5, 2016
ad38d76
Created a ditzy controller to handle the landing page. Added a logo.
jadevance May 5, 2016
87a49e7
Merge branch 'master' of github.com:pottery123/betsy
jadevance May 5, 2016
3625915
working out some show method problems. refactor opportunity here.
cotarg May 5, 2016
ba2e012
amended this page to display products, removed logged in user specifi…
cotarg May 5, 2016
2f3a62b
amended this page to show review link. link displays *unless* they sh…
cotarg May 5, 2016
052a65e
Merge branch 'master' of github.com:pottery123/betsy
cotarg May 5, 2016
c59a5c9
We linked up login and logout and wrote logic to handle view if a use…
jadevance May 5, 2016
899dd31
Merge branch 'master' of github.com:pottery123/betsy
jadevance May 5, 2016
0a86825
working on integrating reviews with products.
cotarg May 5, 2016
d305748
Merge branch 'master' of github.com:pottery123/betsy
cotarg May 5, 2016
1f53fa9
refactoring to find the bug.
cotarg May 5, 2016
bffd0e1
making each product detail page display the reviews for that product.
cotarg May 5, 2016
4fcea59
Added support to render image urls
jadevance May 5, 2016
4935ea4
wrking on show by merchant/show by category.
cotarg May 5, 2016
eff6e4c
this is some seed products.
cotarg May 5, 2016
e393d2c
Merge branch 'master' of github.com:pottery123/betsy
cotarg May 5, 2016
215eb97
fixed some typos that broke my images.
cotarg May 5, 2016
89b32fb
added manually written route.
cotarg May 5, 2016
c8bf91d
tweaking display of home page images
jadevance May 5, 2016
4513d8f
commented out one route that was breaking my code
leahnp May 5, 2016
09239ff
Added images to individual product pages.
jadevance May 5, 2016
1131506
added routes to render merchant dashboard view
leahnp May 5, 2016
7ac25f3
fixed landing page so all products page is linked below
jadevance May 5, 2016
fdade41
added buttons to each product on the /products page
jadevance May 5, 2016
1a04b6d
Merge branch 'master' of github.com:pottery123/betsy
jadevance May 5, 2016
b9695ce
Merge branch 'jv-buy-button'
jadevance May 5, 2016
86b2fe7
working on bug showing all reviews on each page
cotarg May 5, 2016
c086dbf
Fixed routes to edit items from products
jadevance May 5, 2016
d251ca8
Merge branch 'master' of github.com:pottery123/betsy
jadevance May 5, 2016
3e11cdb
added column to add catagory, realized I need a catagory table and to…
leahnp May 5, 2016
4ee75dd
added some sweet font awesome font styling for bonus awesomez
jadevance May 6, 2016
ce380a6
seeded order items for display purposes on the new order page
jadevance May 6, 2016
cdd6cd1
added a form for guest payment info to the new order page.
jadevance May 6, 2016
57efadb
formatting, added p tags around items to make spacing uniform
jadevance May 6, 2016
48ca4c3
added a model and schema for billing info. Still need to validate ema…
jadevance May 6, 2016
1767e3a
email validations working now.
jadevance May 6, 2016
09794d9
Added billing validation and linked to the new order form.
jadevance May 6, 2016
06bc22d
migrated databases, added catagories table and changed catagories col…
leahnp May 6, 2016
5d3b033
wrote product view by merchant.
cotarg May 6, 2016
eaa61d4
amending some things to enable viewing of reviews and products by mer…
cotarg May 6, 2016
a5a96e1
Merge branch 'master' of github.com:pottery123/betsy
cotarg May 6, 2016
c20cb6b
dealt with merge conflicts
leahnp May 6, 2016
bb7da00
fixed this to remove duplicate table migration.
cotarg May 6, 2016
262fcb2
deleted these to force rails and active record to do the thing.
cotarg May 6, 2016
b414b2a
schema from updated database incorporating billings and categories.
cotarg May 6, 2016
979154d
apparently my merge into master did not work, trying again
leahnp May 6, 2016
424d2e0
Merge branch 'leah/dashboard'
leahnp May 6, 2016
7d57186
added route to view by category.
cotarg May 6, 2016
b3f0590
adding view to view by category.
cotarg May 6, 2016
7a0c294
all the things required to make the categories work.
cotarg May 6, 2016
76e4848
setting up required files for category objects.
cotarg May 6, 2016
ce100eb
working on categories. need to delete bad table and migrate name column.
cotarg May 6, 2016
a38ba6f
removing some typos, fixing some tables, adding some columns.
cotarg May 6, 2016
047cf9a
adding create a product section, nothing is hooked up
leahnp May 6, 2016
6435d92
trying to merge
leahnp May 6, 2016
4ca61b3
wrote migrations to fix wrong column, add to right table.
cotarg May 6, 2016
001c1f7
working on adding catagory still, need to grab new migration from master
leahnp May 6, 2016
784f7b2
Added seed data to orders
jadevance May 6, 2016
2124310
merge conflict in routes
leahnp May 6, 2016
2ac7dc0
Merge branch 'master' of github.com:pottery123/betsy
jadevance May 6, 2016
0edfe40
created form to add new category
leahnp May 6, 2016
cfe74d9
adding categories now working
leahnp May 6, 2016
7f6d668
adding form for merchants to add new products, need to find solution …
leahnp May 6, 2016
debe259
worked out linking and looking up by category.
cotarg May 6, 2016
63bec55
establishing category relationships
cotarg May 6, 2016
76dcbeb
worked out many to many with products
cotarg May 6, 2016
acaff66
view to display by categories.
cotarg May 6, 2016
14e2c64
working on displaying products in category.
cotarg May 6, 2016
6856313
added link to seller to each product on index, links to list of produ…
cotarg May 6, 2016
ee5d68c
changed a typo.
cotarg May 6, 2016
5cf83f8
schema changed via catgory migrations.
cotarg May 6, 2016
b0f038a
linked categories and products.
cotarg May 6, 2016
4d9e351
removed constraint from user_id column in orders table.
cotarg May 6, 2016
e911dab
Merge branch 'master' of github.com:pottery123/betsy
jadevance May 6, 2016
936723e
rowan created new migration, need to pull in master
leahnp May 6, 2016
97a3968
merge conflict, adjusted categories controller
leahnp May 6, 2016
ef0a001
working on view products by category.
cotarg May 6, 2016
bd6eead
add product form displaying, not hooked up in the back end, weird but…
leahnp May 6, 2016
b9b2b7f
sessions now work for logging in / creating an order id
jadevance May 6, 2016
a489151
I need to drop my catagory table in products, going to do it...
leahnp May 6, 2016
b9dcced
removed catagories column from products table, changed the seed produ…
leahnp May 6, 2016
66889f9
added list of all categories to merchant dashboard
leahnp May 6, 2016
95c5b83
added raise to work on how I will pop out the catagories so I can add…
leahnp May 6, 2016
ba3dc00
omg the cart works
jadevance May 7, 2016
886a7fa
working on linking up orders/completing a purchase from the cart of o…
jadevance May 7, 2016
f11900a
Merge branch 'master' of github.com:pottery123/betsy
jadevance May 7, 2016
b48a7e2
Merge branch 'jv-cart'
jadevance May 7, 2016
5274968
Redirected ditzy index to /products, removing the ditzy separate cont…
jadevance May 7, 2016
c006202
removed ditzy controller
jadevance May 7, 2016
dc91def
Fixed login issue where it was redirecting to the wrong path
jadevance May 7, 2016
26e2137
Added a new method to sessions to handle the instantiation of a new c…
jadevance May 7, 2016
620b87d
removed raise from method I was testing, grouped new with create so c…
jadevance May 7, 2016
be74558
created radio buttons for catagories, so merchants can assign more th…
leahnp May 7, 2016
00eafbe
commented out belongs_to in catagory
leahnp May 8, 2016
c337db8
got multiple categories saving for new product
leahnp May 8, 2016
d31dba9
outlined the order process to roll in confirmation of billing complete.
jadevance May 8, 2016
dc8dc96
added list of merchant's products to their dashboard page
leahnp May 8, 2016
959f5e8
added button to edit products from merchant dashboard
leahnp May 8, 2016
7915340
hooked up edit product form
leahnp May 8, 2016
503a929
finished edit form, want to make visible edit some radio buttons
leahnp May 8, 2016
bc89c0c
made radio buttons for visiblity field in product udpate, toggle true…
leahnp May 8, 2016
0b81267
added line to indicate if product was visible or not visible to buyers
leahnp May 8, 2016
7bde3c3
made merchant products on dashboard a table
leahnp May 8, 2016
bce0926
adding bootstrap.
cotarg May 10, 2016
2e14d02
Wrote my first passing test for order items, yay
jadevance May 10, 2016
cfe45af
going to push to master
leahnp May 10, 2016
f52ef70
merge conflicts
leahnp May 10, 2016
942338b
removed old root path
leahnp May 10, 2016
2045b9d
redirect to product detail view after posting review now.
cotarg May 10, 2016
7b32f3e
commented out duplicate route, needs refactor.
cotarg May 10, 2016
076ae8a
made logo into link to return to home page.
cotarg May 10, 2016
933cfdd
rolled billings into orders schema
jadevance May 10, 2016
a66383b
managing merge conflicts
jadevance May 10, 2016
7e09e8e
Merge branch 'master' of github.com:pottery123/betsy
jadevance May 10, 2016
c6984f7
redirect to login after creating account.
cotarg May 10, 2016
93c4eda
changed it so that item picture and item title are in the same li, us…
cotarg May 10, 2016
4699661
added dashboard link to nav bar in layouts/application view.
cotarg May 10, 2016
78e0764
Removed billing model
jadevance May 10, 2016
58aa974
fixed bug that wasn't allowing us to add categories.
cotarg May 10, 2016
d114bed
making sure you can't leave a review if it's your product.
cotarg May 10, 2016
bd4d7f6
commented out params hash to view page.
cotarg May 10, 2016
973d1c1
Fixed order seeding data
jadevance May 10, 2016
8f58a8e
working on checkout billing form
pottery123 May 10, 2016
a60272c
tracked down and got rid of bug making it impossible to show vendor o…
cotarg May 10, 2016
fca5ff9
added status column to orders
pottery123 May 10, 2016
2b3f85b
merge conflict
leahnp May 10, 2016
830aa68
dashboard link works now. yay.
cotarg May 10, 2016
83dc889
changed a user id in seed data to avoid having to make a billion user…
cotarg May 10, 2016
9258c72
re-added image tag to display images for products that include a url …
cotarg May 10, 2016
749e069
included descriptions of products on each product page.
cotarg May 10, 2016
4b66e44
fixed a bug on individual product pages where the requested item was …
jadevance May 10, 2016
959fbe1
trying to fix @user bug
leahnp May 10, 2016
b840f75
tried changing an instance variable name to see if we were having col…
cotarg May 10, 2016
3f7eac4
added list of categories to homepage, user can click and browse produ…
leahnp May 10, 2016
297a37e
allowed merchants to edit product and add/remove categories from all …
leahnp May 10, 2016
2361baf
made sure unathenticated users cannot view dashboards and merchants c…
leahnp May 10, 2016
e81f568
fixed viewing dashboard bug
leahnp May 10, 2016
8f80c4f
Wrote a clear cart method and a completing order method. show.html.er…
jadevance May 10, 2016
59dfd56
merging route conflict
jadevance May 10, 2016
e562a50
products views now only show visible products
leahnp May 10, 2016
a298505
merge conflicts managed
jadevance May 10, 2016
83c3935
merge conflict
leahnp May 10, 2016
eea1a7f
save to database
pottery123 May 11, 2016
e7973a9
Generated migration to add total column to orders model. Created a pe…
jadevance May 11, 2016
d9413a9
Wrote a migration to drop the table billings from schema.rb
jadevance May 11, 2016
09f265e
cleaned up the reduce inventory method, prepared to interface and tes…
jadevance May 11, 2016
4ce9aa4
added rails-erd to Gemfile to generate ERD for updating our pretty one.
cotarg May 11, 2016
f87daad
Merge branch 'master' of github.com:pottery123/betsy
cotarg May 11, 2016
67f5243
writing some validations and trying to display errors. error display …
cotarg May 11, 2016
27207aa
wrote a controller filter to keep people from accessing account pages…
cotarg May 11, 2016
f3d3415
updated controller filter to work with people who are not logged in, …
cotarg May 11, 2016
194b07f
fixed merge conflict
pottery123 May 11, 2016
a0f8daa
merge conflicts
jadevance May 11, 2016
a52993f
Merge branch 'master' of github.com:pottery123/betsy
jadevance May 11, 2016
26f1c60
adding simplecov gem to development
jadevance May 11, 2016
522a8df
working on displaying errors from validations.
cotarg May 11, 2016
084c548
Added a link to the cart to the main page
jadevance May 11, 2016
d942bb0
Merge branch 'master' of github.com:pottery123/betsy
jadevance May 11, 2016
1aff15d
Added in a google font to make things look nicer
jadevance May 11, 2016
8887778
added link to dashboard to direct merchants to a order fulfillment page
leahnp May 11, 2016
1f2c3b4
Got bootstrap working through a gem. Added new products to seed data …
jadevance May 11, 2016
4aed7f8
working on checkout bugs
jadevance May 11, 2016
7024a4f
displaying merchant order items to order fulfillment page, need to ad…
leahnp May 11, 2016
f93fd1c
added shipped table, order items for specific merchant showing on ord…
leahnp May 11, 2016
989c009
wrote a better statement to display orderitems for specific merchant
leahnp May 12, 2016
9aa17d6
added link order_item details page, that lists info about that order …
leahnp May 12, 2016
bdb9597
working on table to display unshipped order items
leahnp May 12, 2016
a86087d
merchants can mark items shipped now and order item will move into th…
leahnp May 12, 2016
93c5acf
added quantity, subtotal to shipped item info
leahnp May 12, 2016
a3eed70
Found a routing bug on the order complete page as well as params bug …
jadevance May 12, 2016
6551009
added shipping to confirmation page. First item displays, need to loo…
jadevance May 12, 2016
62d66ce
sorted unshippped products by order number
leahnp May 12, 2016
2fc77b1
bootstrapping the main page
jadevance May 12, 2016
f1e5209
beginning work on tests for products and products controller.
cotarg May 12, 2016
4548dac
merchants can see total revenue by status, number of orders by status
leahnp May 12, 2016
c029a9d
merchant can view order info to see user name/cc/address/etc
leahnp May 12, 2016
7b9a0b0
styling, standardized font sizes for headings so they don't look janky
jadevance May 12, 2016
f9f8d16
clickable image link on the landing page, yay
jadevance May 12, 2016
6995e7e
fixed a mistake in the clickable image where I forgot to path it, oops
jadevance May 12, 2016
2ebc4d8
wrote first test. validating presence of name.
cotarg May 12, 2016
43952d5
removing coverage from tracking.
cotarg May 12, 2016
8787d68
wrote a fixture for testing products controller.
cotarg May 12, 2016
e8e75ca
adding simplecov and writing tests.
cotarg May 12, 2016
5de6774
fixing simplecov to test rails, finished up product validation tests.
cotarg May 12, 2016
65c3254
Merge branch 'rowan/trying-out-tests'
cotarg May 12, 2016
2ba02b1
Styled individual product pages, sorted out some display bugs.
jadevance May 12, 2016
f5fa8bd
Merge branch 'master' of github.com:pottery123/betsy
jadevance May 12, 2016
c678144
working on routes
cotarg May 12, 2016
ced3b37
Merge branch 'master' of github.com:pottery123/betsy
cotarg May 12, 2016
43963ed
edited routes. refactor to remove deprecated routes once fully tested.
cotarg May 12, 2016
c8308f2
took out where clause in merchant show orders controller
leahnp May 12, 2016
8280ab7
going to merge
leahnp May 12, 2016
c172272
merge conflicts
leahnp May 12, 2016
3dc4d27
commiting
pottery123 May 12, 2016
77ad4af
Confirmation page now works properly yaaay
jadevance May 12, 2016
f54c58c
commits
pottery123 May 12, 2016
886ea64
merge conflicts
pottery123 May 12, 2016
df3b5a7
added unit tests for users
leahnp May 12, 2016
94b5274
added link to product details to show merchant name
leahnp May 12, 2016
1f8eb51
added link from product details page to merchants store page, working…
leahnp May 12, 2016
2cb8d39
listed all merchant products on merchant store page
leahnp May 12, 2016
0694fe4
styled the reviews page, everything lines up and has the same padding…
jadevance May 12, 2016
8939d95
styled the billing page
jadevance May 12, 2016
0249c08
Standardized view of order complete page and cart page Added fancy fo…
jadevance May 12, 2016
c3e8257
merge conflict
leahnp May 12, 2016
6e663d4
redirected user back to create review page if they try to enter a rev…
leahnp May 12, 2016
57fb74a
fixed an error on product details, styled the mechant dashboard and o…
jadevance May 12, 2016
4dd6f43
fixed a totaling bug on the confirmation page. Added logic to handle …
jadevance May 12, 2016
56bbadb
finished styling the confirmation page
jadevance May 12, 2016
ec02473
added in image responsiveness to product details, fixed a div-splosio…
jadevance May 12, 2016
95273be
Merge branch 'master' of github.com:pottery123/betsy
jadevance May 12, 2016
bf8ce12
fixed a bug where if a product does not have a merchant (seed data), …
jadevance May 12, 2016
3bd25cd
parsed time for credit card expiration mm-yy
leahnp May 12, 2016
a0cb3b7
Merge branch 'master' of github.com:pottery123/betsy
leahnp May 12, 2016
84640e9
fixed a migration file
jadevance May 12, 2016
b12f84e
db migrate problems, extra end
leahnp May 12, 2016
76b678e
Styled login page
jadevance May 13, 2016
9be4f50
merge conflict in migration
leahnp May 13, 2016
39cbc1d
adding drop down menu for expiration date, need a migration
leahnp May 13, 2016
6b8e4a4
new migration that changes orders, expiration on cc to string
leahnp May 13, 2016
e511477
created drop down style month/year for expiration date on cc form
leahnp May 13, 2016
d494f58
Cleaned up and standardized the CSS on the pages. Cleaned up comments…
jadevance May 13, 2016
6843b2c
Merge branch 'master' of github.com:pottery123/betsy
jadevance May 13, 2016
d7158a6
added a sweet favicon to site
jadevance May 13, 2016
d4e03b7
Took out some placeholder logic
jadevance May 13, 2016
8ddc0e9
fixed a bug in the seed data
jadevance May 13, 2016
fe00328
added image responsiveness to merchant store images so they are not g…
jadevance May 13, 2016
40c4b7b
Fixed a bug on the merchant dashboard
jadevance May 13, 2016
9ec6c79
Styled edit products page
jadevance May 13, 2016
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
14 changes: 11 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,19 @@
# git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.


.DS_Store

coverage

/.bundle

# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal

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

.DS_Store
/tmp
6 changes: 5 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'

gem 'bootstrap-sass'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

Expand All @@ -24,7 +26,7 @@ gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
gem 'bcrypt', '~> 3.1.7'

# Use Unicorn as the app server
# gem 'unicorn'
Expand All @@ -35,6 +37,8 @@ gem 'sdoc', '~> 0.4.0', group: :doc
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
gem 'simplecov'
gem 'rails-erd'
end

group :development do
Expand Down
26 changes: 26 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,17 @@ GEM
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
arel (6.0.3)
autoprefixer-rails (6.3.6)
execjs
bcrypt (3.1.11)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bootstrap-sass (3.3.6)
autoprefixer-rails (>= 5.2.1)
sass (>= 3.3.4)
builder (3.2.2)
byebug (8.2.5)
choice (0.2.0)
coffee-rails (4.1.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.1.x)
Expand All @@ -50,6 +57,7 @@ GEM
coffee-script-source (1.10.0)
concurrent-ruby (1.0.1)
debug_inspector (0.0.2)
docile (1.1.5)
erubis (2.7.0)
execjs (2.6.0)
globalid (0.3.6)
Expand Down Expand Up @@ -96,6 +104,11 @@ GEM
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-erd (1.4.7)
activerecord (>= 3.2)
activesupport (>= 3.2)
choice (~> 0.2.0)
ruby-graphviz (~> 1.2)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (4.2.6)
Expand All @@ -106,6 +119,7 @@ GEM
rake (11.1.2)
rdoc (4.2.2)
json (~> 1.4)
ruby-graphviz (1.2.2)
sass (3.4.22)
sass-rails (5.0.4)
railties (>= 4.0.0, < 5.0)
Expand All @@ -116,6 +130,11 @@ GEM
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
simplecov (0.11.2)
docile (~> 1.1.0)
json (~> 1.8)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
spring (1.7.1)
sprockets (3.6.0)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -143,18 +162,25 @@ PLATFORMS
ruby

DEPENDENCIES
bcrypt (~> 3.1.7)
bootstrap-sass
byebug
coffee-rails (~> 4.1.0)
jbuilder (~> 2.0)
jquery-rails
pg (~> 0.15)
rails (= 4.2.6)
rails-erd
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
simplecov
spring
turbolinks
uglifier (>= 1.3.0)
web-console (~> 2.0)

RUBY VERSION
ruby 2.3.0p0

BUNDLED WITH
1.12.1
Binary file added app/assets/images/ditzy_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/ditzy_logo_final.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/products/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/products/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/assets/javascripts/categories.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/order_item.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/orders.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/products.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/reviews.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/sessions.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
3 changes: 3 additions & 0 deletions app/assets/javascripts/users.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
15 changes: 0 additions & 15 deletions app/assets/stylesheets/application.css

This file was deleted.

106 changes: 106 additions & 0 deletions app/assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
/** MAIN STYLING **/

@import "bootstrap-sprockets";
@import "bootstrap";

* {
box-sizing: border-box;
}

html {
font-family: 'Palanquin', sans-serif;
font-size: 1rem;
}

main {
padding: 1rem;
}

h1 {
color: #42bad3; /* ditzy bright blue */
font-weight: lighter;
font-size: 2.5rem;
padding: 1rem;
margin: 0rem;
}

h2 {
color: #d8563d; /* ditzy red */
font-size: 1.5rem;
padding: 1rem;
}

h3 {
color: #42bad3; /* ditzy bright blue */
font-size: 1.5rem;
padding: 1rem;
}

h4 {

color: #3f52b8; /* ditzy dark blue */
font-size: 1.5rem;
padding: 1rem;

}

span {
color: #3f52b8; /* ditzy dark blue */
}

a {
color: #3f52b8; /* ditzy dark blue */
}

p {
color: #3f52b8; /* ditzy dark blue */
font-size: 1rem;
padding: 1rem;
}

li {
color: #42bad3; /* ditzy bright blue */

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that you commented to explain the colors! Easy to see what each are for

list-style-type: circle;
}


hr.dark-blue {
border: 0.1rem solid #3f52b8;
padding: 0rem;
margin: 0rem;
}

hr.bright-blue {
border: 0.1rem solid #42bad3;
padding: 0rem;
margin: 0rem;
}

.thumnbnail {
display: inline-block;
margin-left: auto;
margin-right: auto;
}

.caption {
display: inline-block;
margin-left: auto;
margin-right: auto;
}

.caption p {
font-size: 0.8rem;
margin: 0;
}

.btn {
margin-left: 0.5rem;
}

/** FONT AWESOME **/

.fa {
color: #3f52b8; /* ditzy dark blue */
font-size: 3rem !important;
}

3 changes: 3 additions & 0 deletions app/assets/stylesheets/categories.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the categories controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/order_item.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the OrderItem controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/orders.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the orders controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/products.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the products controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/reviews.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the reviews controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/sessions.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the sessions controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/users.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Place all the styles related to the users controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
16 changes: 15 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,18 @@ class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
end
helper_method :current_user

def current_user
@user ||= User.find_by(id: session[:user_id])
end

def index
redirect_to products_path
end

# def logged_in?
# current_user != nil
# end

end
50 changes: 50 additions & 0 deletions app/controllers/categories_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
class CategoriesController < ApplicationController

# we could use this to run a clickable list of categories that will enable folks to see what all the categories are.
def index
end

def show_by_category
@merchant = User.find(params[:id])
@products = Product.where(user_id: @merchant.id)

render :categories_products
end
# if merchant && merchant.authenticate(params[:password])
# merchant_session[:merchant_id] = merchant.id
# redirect_to root_url, :notice => "Merchanthas been logged in"
# else
# flash.now[:error] = "Invalid username or password."
# @title = "Merchant Signin"
# render "new"
# end
def new
@category = Category.new
end

def create
# if category_create_params[:category][:name] == ""
# flash.now[:error] = "Please Enter a Catagory Name"
# raise
# end
@category = Category.new(category_create_params[:category])
if @category.save
redirect_to dashboard_path(current_user.id)
else
# this sucks - place holder for the moment
render :bad_route

# redirect_to dashboard_path(current_user.id)
end
end

private
def category_create_params
# if category_create_params[:category][:name] == ""
# flash.now[:error] = "Please Enter a Catagory Name"
# raise
# end
params.permit(category: [:name])
end
end

Loading