Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
951d1e1
added models
shreya-sridhar Dec 2, 2020
49139cc
added model relationships
shreya-sridhar Dec 2, 2020
3e418ff
first commit
DanTheMan114 Dec 2, 2020
9783684
modified relationships
shreya-sridhar Dec 2, 2020
f81349f
updated gem file
shreya-sridhar Dec 2, 2020
e081047
done
shreya-sridhar Dec 2, 2020
d369d83
created two tables
DanTheMan114 Dec 2, 2020
2a0eae3
seeds
DanTheMan114 Dec 2, 2020
e052d17
Made some seeds
DanTheMan114 Dec 3, 2020
000de44
done
shreya-sridhar Dec 3, 2020
1a5ba09
start layout
DanTheMan114 Dec 3, 2020
b5d31f7
done
shreya-sridhar Dec 3, 2020
f3cd4da
start cli
DanTheMan114 Dec 3, 2020
2dc49da
done
shreya-sridhar Dec 3, 2020
2c6ef8a
done
shreya-sridhar Dec 3, 2020
879a55f
done
shreya-sridhar Dec 3, 2020
61807eb
decided some methods
shreya-sridhar Dec 3, 2020
ef325e2
more seeds
DanTheMan114 Dec 3, 2020
217b3c2
seeds
DanTheMan114 Dec 3, 2020
c8cc4c8
added login methods
shreya-sridhar Dec 3, 2020
f347a26
added login methods
shreya-sridhar Dec 3, 2020
ccd3b70
cli
DanTheMan114 Dec 3, 2020
5466a45
Merge branch 'master' of github.com:DanTheMan114/ruby-project-guideli…
DanTheMan114 Dec 3, 2020
c034cc6
working login and signup
shreya-sridhar Dec 3, 2020
1328b9d
did a little work on shopping method
DanTheMan114 Dec 3, 2020
d4449e1
done?
DanTheMan114 Dec 3, 2020
be9dd11
added signup login methods
shreya-sridhar Dec 3, 2020
9e7ad4b
Dan
DanTheMan114 Dec 3, 2020
3a08b5a
Merge branch 'Dan' into master
DanTheMan114 Dec 3, 2020
51456a6
Da
DanTheMan114 Dec 3, 2020
0f97989
wow
DanTheMan114 Dec 3, 2020
57fedbb
added user profile methods
shreya-sridhar Dec 4, 2020
fac1595
Dan
DanTheMan114 Dec 4, 2020
ac58ef1
add
DanTheMan114 Dec 4, 2020
589db0b
time
DanTheMan114 Dec 4, 2020
b997127
shopping method
DanTheMan114 Dec 4, 2020
f8075df
checkout start
DanTheMan114 Dec 4, 2020
0704c27
Dan
DanTheMan114 Dec 7, 2020
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
378 changes: 378 additions & 0 deletions Customer

Large diffs are not rendered by default.

23 changes: 21 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
# frozen_string_literal: true
#frozen_string_literal: true
# source "https://rubygems.org"

# gem "sinatra-activerecord"
# gem "sqlite3"
# gem "pry"
# gem "require_all"

source "https://rubygems.org"

gem "activerecord", '~> 5.2'
gem "sinatra-activerecord"
gem "sqlite3"
gem "sqlite3", '~> 1.3.6'
gem "pry"
gem "require_all"
gem "faker"
gem "rake"
gem "tty-prompt"
gem "pastel"
gem "tty-progressbar"
gem "tty-spinner"
gem 'tty-font'
gem 'date'
gem 'rest-client'
gem 'json'

112 changes: 84 additions & 28 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,56 +1,112 @@
GEM
remote: https://rubygems.org/
specs:
activemodel (6.0.3.1)
activesupport (= 6.0.3.1)
activerecord (6.0.3.1)
activemodel (= 6.0.3.1)
activesupport (= 6.0.3.1)
activesupport (6.0.3.1)
activemodel (5.2.4.4)
activesupport (= 5.2.4.4)
activerecord (5.2.4.4)
activemodel (= 5.2.4.4)
activesupport (= 5.2.4.4)
arel (>= 9.0)
activesupport (5.2.4.4)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
coderay (1.1.1)
concurrent-ruby (1.1.6)
i18n (1.8.2)
arel (9.0.0)
coderay (1.1.3)
concurrent-ruby (1.1.7)
date (3.0.1)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
faker (2.15.1)
i18n (>= 1.6, < 2)
http-accept (1.7.0)
http-cookie (1.0.3)
domain_name (~> 0.5)
i18n (1.8.5)
concurrent-ruby (~> 1.0)
method_source (0.8.2)
minitest (5.14.1)
mustermann (1.0.3)
pry (0.10.4)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
json (2.3.1)
method_source (1.0.0)
mime-types (3.3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2020.1104)
minitest (5.14.2)
mustermann (1.1.1)
ruby2_keywords (~> 0.0.1)
netrc (0.11.0)
pastel (0.8.0)
tty-color (~> 0.5)
pry (0.13.1)
coderay (~> 1.1)
method_source (~> 1.0)
rack (2.2.3)
rack-protection (2.0.7)
rack-protection (2.1.0)
rack
require_all (1.3.3)
sinatra (2.0.7)
rake (13.0.1)
require_all (3.0.0)
rest-client (2.1.0)
http-accept (>= 1.7.0, < 2.0)
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
ruby2_keywords (0.0.2)
sinatra (2.1.0)
mustermann (~> 1.0)
rack (~> 2.0)
rack-protection (= 2.0.7)
rack (~> 2.2)
rack-protection (= 2.1.0)
tilt (~> 2.0)
sinatra-activerecord (2.0.12)
activerecord (>= 3.2)
sinatra-activerecord (2.0.21)
activerecord (>= 4.1)
sinatra (>= 1.0)
slop (3.6.0)
sqlite3 (1.3.13)
strings-ansi (0.1.0)
thread_safe (0.3.6)
tilt (2.0.10)
tzinfo (1.2.7)
tty-color (0.6.0)
tty-cursor (0.7.1)
tty-font (0.5.0)
tty-progressbar (0.17.0)
strings-ansi (~> 0.1.0)
tty-cursor (~> 0.7)
tty-screen (~> 0.7)
unicode-display_width (~> 1.6)
tty-prompt (0.22.0)
pastel (~> 0.8)
tty-reader (~> 0.8)
tty-reader (0.8.0)
tty-cursor (~> 0.7)
tty-screen (~> 0.8)
wisper (~> 2.0)
tty-screen (0.8.1)
tty-spinner (0.9.3)
tty-cursor (~> 0.7)
tzinfo (1.2.8)
thread_safe (~> 0.1)
zeitwerk (2.3.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.7)
unicode-display_width (1.7.0)
wisper (2.0.1)

PLATFORMS
ruby

DEPENDENCIES
activerecord (~> 5.2)
date
faker
json
pastel
pry
rake
require_all
rest-client
sinatra-activerecord
sqlite3
sqlite3 (~> 1.3.6)
tty-font
tty-progressbar
tty-prompt
tty-spinner

BUNDLED WITH
1.14.6
4 changes: 4 additions & 0 deletions app/models/customer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class Customer < ActiveRecord::Base
has_many :orders
has_many :foods, through: :orders
end
4 changes: 4 additions & 0 deletions app/models/food.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class Food < ActiveRecord::Base
has_many :orders
has_many :customers, through: :orders
end
4 changes: 4 additions & 0 deletions app/models/order.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class Order < ActiveRecord::Base
belongs_to :customer
belongs_to :food
end
Loading