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

Merge 1 #33

Open
wants to merge 107 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
9a84172
intial commit
aeunderhill Aug 2, 2021
fc4ae0a
Senay
Senayson Aug 2, 2021
f06b156
finish setup the env
Pegasusor001 Aug 2, 2021
75bacd5
Senay setup
Senayson Aug 2, 2021
a4ebead
Create database tables
Senayson Aug 2, 2021
543a5fb
Create fake data for client and artist
Senayson Aug 2, 2021
d08237d
Able to render data via json to frontend
Senayson Aug 3, 2021
e8a4e18
add content of artist see request, accept request and update request
Pegasusor001 Aug 3, 2021
4603c04
mer with from-end artist but jason file problem
Pegasusor001 Aug 3, 2021
2cd1d6d
Create artist/client authentication methods
Senayson Aug 3, 2021
4f8098a
merge with front end artist successfully
Pegasusor001 Aug 3, 2021
2530cbe
Add fake date categories/artists_categories
Senayson Aug 3, 2021
be14124
Create sessions controller create destroy methods
Senayson Aug 3, 2021
88b1d04
adding login, home, about, register, gallery pages
aeunderhill Aug 3, 2021
27052b8
add filter help method
Pegasusor001 Aug 3, 2021
70ddd97
request will be changed and muted when artist accept the request
Pegasusor001 Aug 3, 2021
fbc332b
add filter bar
Pegasusor001 Aug 4, 2021
5c78afe
Create CRUD for artists/clients
Senayson Aug 4, 2021
ef6b8d0
Able to serve all tables to react server
Senayson Aug 4, 2021
28ece08
add gallery, login, register pages
aeunderhill Aug 4, 2021
6d714bd
CRUD for all except messages
Senayson Aug 4, 2021
568f2f1
Merge branch 'master' into senai
Senayson Aug 4, 2021
1a31ca2
can mark request when accepted, confirm, and finish
Pegasusor001 Aug 4, 2021
fb0466b
further setting up and debugging of gallery, login, register, home
aeunderhill Aug 4, 2021
12deb4c
updating gallery page to allow for information and icon on the image
aeunderhill Aug 4, 2021
ec8b373
updating gallery page
aeunderhill Aug 4, 2021
d30e674
merge conflict changes
aeunderhill Aug 4, 2021
8d3dc9a
try to get adams input
Pegasusor001 Aug 4, 2021
79844c7
after merge
Pegasusor001 Aug 4, 2021
f247fe0
solve merge problem
Pegasusor001 Aug 4, 2021
0786396
solve merge problem
Pegasusor001 Aug 4, 2021
1287047
add route, start styling
Pegasusor001 Aug 4, 2021
bd08623
A
Senayson Aug 5, 2021
b85a56c
Stage
Senayson Aug 5, 2021
a610aa9
Install react_router dom
Senayson Aug 5, 2021
c6bb600
Install react router dom
Senayson Aug 5, 2021
04bdf60
style the dashboard with css
Pegasusor001 Aug 5, 2021
91fa99f
add 2
Pegasusor001 Aug 5, 2021
6bdf3fc
merge with style
Pegasusor001 Aug 5, 2021
e3ba32e
merge with master
Pegasusor001 Aug 5, 2021
4359ea3
Merge pull request #3 from aeunderhill/feature/styling_2
Pegasusor001 Aug 5, 2021
6c11a23
Merge branch 'master' of github.com:aeunderhill/final_project
Senayson Aug 5, 2021
90a0421
Update
Senayson Aug 5, 2021
deb791d
Package.json
Senayson Aug 5, 2021
4dfc2df
Merge branch 'master' into senai
Senayson Aug 5, 2021
b8511ed
Sort promise problem
Senayson Aug 5, 2021
5300788
Sort Promise problem
Senayson Aug 5, 2021
b536ab0
rename component
Pegasusor001 Aug 5, 2021
1845a01
Add comments on Lun's work
Senayson Aug 5, 2021
493e0a5
Create a nested review under artist
Senayson Aug 6, 2021
f93d2e4
Create function to filter table by columns and id
Senayson Aug 6, 2021
0f3e4c3
Implement filter function on different tables
Senayson Aug 6, 2021
e0f6721
"Update"
Senayson Aug 6, 2021
473e07d
add tag to dashboard
Pegasusor001 Aug 6, 2021
4047ad6
add backend
Pegasusor001 Aug 6, 2021
539520a
add backend code
Pegasusor001 Aug 6, 2021
5335136
Merge pull request #4 from aeunderhill/feature/styling_3
Pegasusor001 Aug 6, 2021
aa91909
minor change in index
Pegasusor001 Aug 6, 2021
69c8d71
Before useContext creation
Senayson Aug 7, 2021
a094cf8
Add column rating to artist remove column title from reviews
Senayson Aug 7, 2021
451473a
Change the data structure to contain objects with key-object pair
Senayson Aug 7, 2021
1730697
Minor changes to pages
Senayson Aug 7, 2021
e30d823
No changes
Senayson Aug 8, 2021
88b9602
StateContext rectify
Senayson Aug 9, 2021
334244d
Merge branch 'master' into senai
Senayson Aug 9, 2021
1547d94
styling the dashboards
Pegasusor001 Aug 9, 2021
8a423f1
REQUESTS post request implement
Senayson Aug 9, 2021
44a628e
Merge feature/usercommission to senai
Senayson Aug 9, 2021
2664684
Merge remote-tracking branch 'refs/remotes/origin/master'
Senayson Aug 9, 2021
d854ee8
Merge branch 'senai'
Senayson Aug 9, 2021
4cfba39
Delete stateProvider.js.jsx duplicate of stateProvider.jsx
Senayson Aug 9, 2021
9351a0d
Usercommission changes
Senayson Aug 9, 2021
9da69db
Merge branch 'feature/User-Commission' into senai
Senayson Aug 9, 2021
ab6b2bd
Merge branch 'senai'
Senayson Aug 9, 2021
a58daf5
backup
Pegasusor001 Aug 10, 2021
3aa9f11
login and register
Pegasusor001 Aug 10, 2021
1b1f2ec
Implement accept request to db n to state"
Senayson Aug 10, 2021
aa2d597
merge
Senayson Aug 10, 2021
ccb7405
add login, logout session and css
Pegasusor001 Aug 10, 2021
67b5ae1
add login, logout session and css
Pegasusor001 Aug 10, 2021
d6b9a20
Merge branch 'master' of github.com:aeunderhill/final_project
Pegasusor001 Aug 10, 2021
afb58e3
final version
Pegasusor001 Aug 10, 2021
f82f437
connect with backend on artist request page
Pegasusor001 Aug 11, 2021
694104d
connect with backend on artist request page
Pegasusor001 Aug 11, 2021
0b85b4e
connect with backend on artist request page
Pegasusor001 Aug 11, 2021
bf817bc
add artistrequest
Pegasusor001 Aug 11, 2021
61b6503
add artistrequest
Pegasusor001 Aug 11, 2021
11e9a4f
add artistrequest
Pegasusor001 Aug 11, 2021
97c7c66
Merge pull request #5 from aeunderhill/feature/session_5
Pegasusor001 Aug 11, 2021
be53b5f
connect to backend for all
Pegasusor001 Aug 11, 2021
7be54e9
all functions done verions
Pegasusor001 Aug 11, 2021
e3693f5
cleanup seeds and code
Pegasusor001 Aug 11, 2021
de8c4b0
Merge branch 'master' into merge_1
Pegasusor001 Aug 11, 2021
bd7c832
Merge 1 (#6)
Pegasusor001 Aug 11, 2021
33d1626
Adam css2 (#7)
aeunderhill Aug 11, 2021
e346d74
Align UserCommission form
Senayson Aug 11, 2021
7498bed
Update
Senayson Aug 11, 2021
71eda7a
Senayson Aug 11, 2021
892b1f0
add redirect function to login and commission
Pegasusor001 Aug 11, 2021
133d479
add style
Pegasusor001 Aug 11, 2021
9e31d36
add styling
Pegasusor001 Aug 11, 2021
12df3b0
Update User Account
Senayson Aug 11, 2021
69da273
add commision style
Pegasusor001 Aug 11, 2021
15ea92c
merge the css
Pegasusor001 Aug 11, 2021
bc72a36
backup
Pegasusor001 Aug 11, 2021
16164b2
Merge branch 'master' into merge_1
Pegasusor001 Aug 11, 2021
84176a1
after merge with CSS from senay and adam
Pegasusor001 Aug 12, 2021
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
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.6.2'
ruby '2.6.6'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.2', '>= 5.2.2.1'
Expand Down Expand Up @@ -30,6 +30,8 @@ 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 'faker'
gem 'populator'
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end

Expand Down
158 changes: 81 additions & 77 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,150 +1,154 @@
GEM
remote: https://rubygems.org/
specs:
actioncable (5.2.3)
actionpack (= 5.2.3)
actioncable (5.2.6)
actionpack (= 5.2.6)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailer (5.2.3)
actionpack (= 5.2.3)
actionview (= 5.2.3)
activejob (= 5.2.3)
actionmailer (5.2.6)
actionpack (= 5.2.6)
actionview (= 5.2.6)
activejob (= 5.2.6)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.2.3)
actionview (= 5.2.3)
activesupport (= 5.2.3)
rack (~> 2.0)
actionpack (5.2.6)
actionview (= 5.2.6)
activesupport (= 5.2.6)
rack (~> 2.0, >= 2.0.8)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.3)
activesupport (= 5.2.3)
actionview (5.2.6)
activesupport (= 5.2.6)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.2.3)
activesupport (= 5.2.3)
activejob (5.2.6)
activesupport (= 5.2.6)
globalid (>= 0.3.6)
activemodel (5.2.3)
activesupport (= 5.2.3)
activerecord (5.2.3)
activemodel (= 5.2.3)
activesupport (= 5.2.3)
activemodel (5.2.6)
activesupport (= 5.2.6)
activerecord (5.2.6)
activemodel (= 5.2.6)
activesupport (= 5.2.6)
arel (>= 9.0)
activestorage (5.2.3)
actionpack (= 5.2.3)
activerecord (= 5.2.3)
marcel (~> 0.3.1)
activesupport (5.2.3)
activestorage (5.2.6)
actionpack (= 5.2.6)
activerecord (= 5.2.6)
marcel (~> 1.0.0)
activesupport (5.2.6)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
arel (9.0.0)
bootsnap (1.4.3)
bootsnap (1.7.7)
msgpack (~> 1.0)
builder (3.2.3)
byebug (11.0.1)
concurrent-ruby (1.1.5)
crass (1.0.4)
erubi (1.8.0)
ffi (1.10.0)
globalid (0.4.2)
activesupport (>= 4.2.0)
i18n (1.6.0)
builder (3.2.4)
byebug (11.1.3)
concurrent-ruby (1.1.9)
crass (1.0.6)
erubi (1.10.0)
faker (2.18.0)
i18n (>= 1.6, < 2)
ffi (1.15.3)
globalid (0.5.2)
activesupport (>= 5.0)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
loofah (2.2.3)
loofah (2.11.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
mini_mime (>= 0.1.1)
marcel (0.3.3)
mimemagic (~> 0.3.2)
method_source (0.9.2)
mimemagic (0.3.3)
mini_mime (1.0.1)
mini_portile2 (2.4.0)
minitest (5.11.3)
msgpack (1.2.9)
nio4r (2.3.1)
nokogiri (1.10.2)
mini_portile2 (~> 2.4.0)
pg (1.1.4)
puma (3.12.1)
rack (2.0.7)
marcel (1.0.1)
method_source (1.0.0)
mini_mime (1.1.0)
mini_portile2 (2.6.1)
minitest (5.14.4)
msgpack (1.4.2)
nio4r (2.5.7)
nokogiri (1.12.0)
mini_portile2 (~> 2.6.1)
racc (~> 1.4)
pg (1.2.3)
populator (1.0.0)
puma (3.12.6)
racc (1.5.2)
rack (2.2.3)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.3)
actioncable (= 5.2.3)
actionmailer (= 5.2.3)
actionpack (= 5.2.3)
actionview (= 5.2.3)
activejob (= 5.2.3)
activemodel (= 5.2.3)
activerecord (= 5.2.3)
activestorage (= 5.2.3)
activesupport (= 5.2.3)
rails (5.2.6)
actioncable (= 5.2.6)
actionmailer (= 5.2.6)
actionpack (= 5.2.6)
actionview (= 5.2.6)
activejob (= 5.2.6)
activemodel (= 5.2.6)
activerecord (= 5.2.6)
activestorage (= 5.2.6)
activesupport (= 5.2.6)
bundler (>= 1.3.0)
railties (= 5.2.3)
railties (= 5.2.6)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.4)
loofah (~> 2.2, >= 2.2.2)
railties (5.2.3)
actionpack (= 5.2.3)
activesupport (= 5.2.3)
rails-html-sanitizer (1.3.0)
loofah (~> 2.3)
railties (5.2.6)
actionpack (= 5.2.6)
activesupport (= 5.2.6)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
rake (12.3.2)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
rake (13.0.6)
rb-fsevent (0.11.0)
rb-inotify (0.10.1)
ffi (~> 1.0)
ruby_dep (1.5.0)
spring (2.0.2)
activesupport (>= 4.2)
spring (2.1.1)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (3.7.2)
sprockets (4.0.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
sprockets-rails (3.2.2)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
thor (0.20.3)
thor (1.1.0)
thread_safe (0.3.6)
tzinfo (1.2.5)
tzinfo (1.2.9)
thread_safe (~> 0.1)
websocket-driver (0.7.0)
websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
websocket-extensions (0.1.5)

PLATFORMS
ruby

DEPENDENCIES
bootsnap (>= 1.1.0)
byebug
faker
listen (>= 3.0.5, < 3.2)
pg
populator
puma (~> 3.11)
rails (~> 5.2.2, >= 5.2.2.1)
spring
spring-watcher-listen (~> 2.0.0)
tzinfo-data

RUBY VERSION
ruby 2.6.2p47
ruby 2.6.6p146

BUNDLED WITH
2.0.1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## NOTE: This repo has not been updated in a while.

#Senay is collaborating now
You may find that the versions of React, Rails, and Ruby are _NOT_ the most current. Feel free to update this repo and make a PR with new versions. Also, please let me know if you run into any bugs.

# React + Rails No-Fluff Boilerplate
Expand Down
7 changes: 7 additions & 0 deletions app/controllers/api/artists_categories_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class Api::ArtistsCategoriesController < ApplicationController
def index
@artists_categories = ArtistCategory.all
render json: @artists_categories
end
end

73 changes: 73 additions & 0 deletions app/controllers/api/artists_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
class Api::ArtistsController < ApplicationController
def index
@artists = Artist.all
# artists = []
# @artists.each do |artist|
# artistHash = artist[:id]
# artistHash = { }
# @artistReviews = Review.artistreview(artist[:id])
# ids = []
# @artistReviews.each do |rev| ids.push rev[:id] end

# artistHash["reviews"] = ids
# artists.push artistHash
# end
render json: @artists
end

def create
@artist = Artist.new(artist_params)
if @artist.save
p @artist
p "aaaaaaaaa"
session[:artist_id] = @artist.id
session[:identity] = "artist"
# redirect_to '/gallery'
else
render json: {error: @artist.errors.messages}
# redirect_to '/register'
end
end

def show
@artist = Artist.find(params[:id])
render json: @artist
end

def update
@artist = Artist.find(params[:id])

if @artist.update(artist_params)
render json: @artist
else
render json: {error: @artist.errors.messages}
end
end


def destroy
@artist = Artist.find(params[:id])
if @artist.destroy
head :no_content
else
render json: {error: @artist.errors.messages}
end
end




private

def artist_params
params.require(:artist).permit(
:first_name,
:last_name,
:email,
:password,
# :password_confirmation,
:phone_number
)
end

end
52 changes: 52 additions & 0 deletions app/controllers/api/categories_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
class Api::CategoriesController < ApplicationController
def index
@categories = Category.all
render json: @categories
end

def create
@category = Category.new(category_params)
if @category.save
render json: @category

else
render json: {error: @category.errors.messages}

end
end

def show
@category = Category.find params[:id]
render json: @category
end

def update
@category = Category.find(params[:id])

if @category.update(category_params)
render json: @category
else
render json: {error: @category.errors.messages}
end
end

def delete
@category = Category.find params[:id]

if @category.destory
head :no_content
else
render json: {error: @category.errors.messages}
end
end

private

def category_params
params.require(:category).permit(
:name
)
end


end
Loading