Skip to content

Commit 88449e8

Browse files
committed
Add initial CRUD functionality
0 parents  commit 88449e8

File tree

117 files changed

+9370
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+9370
-0
lines changed

Diff for: .browserslistrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
defaults

Diff for: .gitattributes

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See https://git-scm.com/docs/gitattributes for more about git attribute files.
2+
3+
# Mark the database schema as having been generated.
4+
db/schema.rb linguist-generated
5+
6+
# Mark the yarn lockfile as having been generated.
7+
yarn.lock linguist-generated
8+
9+
# Mark any vendored files as having been vendored.
10+
vendor/* linguist-vendored

Diff for: .gitignore

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore all logfiles and tempfiles.
11+
/log/*
12+
/tmp/*
13+
!/log/.keep
14+
!/tmp/.keep
15+
16+
# Ignore pidfiles, but keep the directory.
17+
/tmp/pids/*
18+
!/tmp/pids/
19+
!/tmp/pids/.keep
20+
21+
# Ignore uploaded files in development.
22+
/storage/*
23+
!/storage/.keep
24+
25+
/public/assets
26+
.byebug_history
27+
28+
# Ignore master key for decrypting credentials and more.
29+
/config/master.key
30+
31+
/public/packs
32+
/public/packs-test
33+
/node_modules
34+
/yarn-error.log
35+
yarn-debug.log*
36+
.yarn-integrity

Diff for: .prettierrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all",
4+
"printWidth": 80,
5+
"arrowParens": "always"
6+
}

Diff for: .ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby-2.6.5

Diff for: Gemfile

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '2.6.5'
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
7+
gem 'rails', '~> 6.1.4'
8+
# Use postgresql as the database for Active Record
9+
gem 'pg', '~> 1.1'
10+
# Use Puma as the app server
11+
gem 'puma', '~> 5.0'
12+
# Use SCSS for stylesheets
13+
gem 'sass-rails', '>= 6'
14+
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
15+
gem 'webpacker', '~> 5.0'
16+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
17+
gem 'turbolinks', '~> 5'
18+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
19+
gem 'jbuilder', '~> 2.7'
20+
# Use Redis adapter to run Action Cable in production
21+
# gem 'redis', '~> 4.0'
22+
# Use Active Model has_secure_password
23+
# gem 'bcrypt', '~> 3.1.7'
24+
25+
# Use Active Storage variant
26+
# gem 'image_processing', '~> 1.2'
27+
28+
# Reduces boot times through caching; required in config/boot.rb
29+
gem 'bootsnap', '>= 1.4.4', require: false
30+
31+
group :development, :test do
32+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
33+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
34+
end
35+
36+
group :development do
37+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
38+
gem 'web-console', '>= 4.1.0'
39+
# Display performance information such as SQL time and flame graphs for each request in your browser.
40+
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
41+
gem 'rack-mini-profiler', '~> 2.0'
42+
gem 'listen', '~> 3.3'
43+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
44+
gem 'spring'
45+
end
46+
47+
group :test do
48+
# Adds support for Capybara system testing and selenium driver
49+
gem 'capybara', '>= 3.26'
50+
gem 'selenium-webdriver'
51+
# Easy installation and use of web drivers to run system tests with browsers
52+
gem 'webdrivers'
53+
end
54+
55+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
56+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Diff for: Gemfile.lock

+225
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,225 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (6.1.4)
5+
actionpack (= 6.1.4)
6+
activesupport (= 6.1.4)
7+
nio4r (~> 2.0)
8+
websocket-driver (>= 0.6.1)
9+
actionmailbox (6.1.4)
10+
actionpack (= 6.1.4)
11+
activejob (= 6.1.4)
12+
activerecord (= 6.1.4)
13+
activestorage (= 6.1.4)
14+
activesupport (= 6.1.4)
15+
mail (>= 2.7.1)
16+
actionmailer (6.1.4)
17+
actionpack (= 6.1.4)
18+
actionview (= 6.1.4)
19+
activejob (= 6.1.4)
20+
activesupport (= 6.1.4)
21+
mail (~> 2.5, >= 2.5.4)
22+
rails-dom-testing (~> 2.0)
23+
actionpack (6.1.4)
24+
actionview (= 6.1.4)
25+
activesupport (= 6.1.4)
26+
rack (~> 2.0, >= 2.0.9)
27+
rack-test (>= 0.6.3)
28+
rails-dom-testing (~> 2.0)
29+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
30+
actiontext (6.1.4)
31+
actionpack (= 6.1.4)
32+
activerecord (= 6.1.4)
33+
activestorage (= 6.1.4)
34+
activesupport (= 6.1.4)
35+
nokogiri (>= 1.8.5)
36+
actionview (6.1.4)
37+
activesupport (= 6.1.4)
38+
builder (~> 3.1)
39+
erubi (~> 1.4)
40+
rails-dom-testing (~> 2.0)
41+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
42+
activejob (6.1.4)
43+
activesupport (= 6.1.4)
44+
globalid (>= 0.3.6)
45+
activemodel (6.1.4)
46+
activesupport (= 6.1.4)
47+
activerecord (6.1.4)
48+
activemodel (= 6.1.4)
49+
activesupport (= 6.1.4)
50+
activestorage (6.1.4)
51+
actionpack (= 6.1.4)
52+
activejob (= 6.1.4)
53+
activerecord (= 6.1.4)
54+
activesupport (= 6.1.4)
55+
marcel (~> 1.0.0)
56+
mini_mime (>= 1.1.0)
57+
activesupport (6.1.4)
58+
concurrent-ruby (~> 1.0, >= 1.0.2)
59+
i18n (>= 1.6, < 2)
60+
minitest (>= 5.1)
61+
tzinfo (~> 2.0)
62+
zeitwerk (~> 2.3)
63+
addressable (2.8.0)
64+
public_suffix (>= 2.0.2, < 5.0)
65+
bindex (0.8.1)
66+
bootsnap (1.7.6)
67+
msgpack (~> 1.0)
68+
builder (3.2.4)
69+
byebug (11.1.3)
70+
capybara (3.35.3)
71+
addressable
72+
mini_mime (>= 0.1.3)
73+
nokogiri (~> 1.8)
74+
rack (>= 1.6.0)
75+
rack-test (>= 0.6.3)
76+
regexp_parser (>= 1.5, < 3.0)
77+
xpath (~> 3.2)
78+
childprocess (3.0.0)
79+
concurrent-ruby (1.1.9)
80+
crass (1.0.6)
81+
erubi (1.10.0)
82+
ffi (1.15.3)
83+
globalid (0.5.1)
84+
activesupport (>= 5.0)
85+
i18n (1.8.10)
86+
concurrent-ruby (~> 1.0)
87+
jbuilder (2.11.2)
88+
activesupport (>= 5.0.0)
89+
listen (3.6.0)
90+
rb-fsevent (~> 0.10, >= 0.10.3)
91+
rb-inotify (~> 0.9, >= 0.9.10)
92+
loofah (2.11.0)
93+
crass (~> 1.0.2)
94+
nokogiri (>= 1.5.9)
95+
mail (2.7.1)
96+
mini_mime (>= 0.1.1)
97+
marcel (1.0.1)
98+
method_source (1.0.0)
99+
mini_mime (1.1.0)
100+
minitest (5.14.4)
101+
msgpack (1.4.2)
102+
nio4r (2.5.7)
103+
nokogiri (1.11.7-x86_64-darwin)
104+
racc (~> 1.4)
105+
pg (1.2.3)
106+
public_suffix (4.0.6)
107+
puma (5.4.0)
108+
nio4r (~> 2.0)
109+
racc (1.5.2)
110+
rack (2.2.3)
111+
rack-mini-profiler (2.3.2)
112+
rack (>= 1.2.0)
113+
rack-proxy (0.7.0)
114+
rack
115+
rack-test (1.1.0)
116+
rack (>= 1.0, < 3)
117+
rails (6.1.4)
118+
actioncable (= 6.1.4)
119+
actionmailbox (= 6.1.4)
120+
actionmailer (= 6.1.4)
121+
actionpack (= 6.1.4)
122+
actiontext (= 6.1.4)
123+
actionview (= 6.1.4)
124+
activejob (= 6.1.4)
125+
activemodel (= 6.1.4)
126+
activerecord (= 6.1.4)
127+
activestorage (= 6.1.4)
128+
activesupport (= 6.1.4)
129+
bundler (>= 1.15.0)
130+
railties (= 6.1.4)
131+
sprockets-rails (>= 2.0.0)
132+
rails-dom-testing (2.0.3)
133+
activesupport (>= 4.2.0)
134+
nokogiri (>= 1.6)
135+
rails-html-sanitizer (1.3.0)
136+
loofah (~> 2.3)
137+
railties (6.1.4)
138+
actionpack (= 6.1.4)
139+
activesupport (= 6.1.4)
140+
method_source
141+
rake (>= 0.13)
142+
thor (~> 1.0)
143+
rake (13.0.6)
144+
rb-fsevent (0.11.0)
145+
rb-inotify (0.10.1)
146+
ffi (~> 1.0)
147+
regexp_parser (2.1.1)
148+
rubyzip (2.3.2)
149+
sass-rails (6.0.0)
150+
sassc-rails (~> 2.1, >= 2.1.1)
151+
sassc (2.4.0)
152+
ffi (~> 1.9)
153+
sassc-rails (2.1.2)
154+
railties (>= 4.0.0)
155+
sassc (>= 2.0)
156+
sprockets (> 3.0)
157+
sprockets-rails
158+
tilt
159+
selenium-webdriver (3.142.7)
160+
childprocess (>= 0.5, < 4.0)
161+
rubyzip (>= 1.2.2)
162+
semantic_range (3.0.0)
163+
spring (2.1.1)
164+
sprockets (4.0.2)
165+
concurrent-ruby (~> 1.0)
166+
rack (> 1, < 3)
167+
sprockets-rails (3.2.2)
168+
actionpack (>= 4.0)
169+
activesupport (>= 4.0)
170+
sprockets (>= 3.0.0)
171+
thor (1.1.0)
172+
tilt (2.0.10)
173+
turbolinks (5.2.1)
174+
turbolinks-source (~> 5.2)
175+
turbolinks-source (5.2.0)
176+
tzinfo (2.0.4)
177+
concurrent-ruby (~> 1.0)
178+
web-console (4.1.0)
179+
actionview (>= 6.0.0)
180+
activemodel (>= 6.0.0)
181+
bindex (>= 0.4.0)
182+
railties (>= 6.0.0)
183+
webdrivers (4.6.0)
184+
nokogiri (~> 1.6)
185+
rubyzip (>= 1.3.0)
186+
selenium-webdriver (>= 3.0, < 4.0)
187+
webpacker (5.4.0)
188+
activesupport (>= 5.2)
189+
rack-proxy (>= 0.6.1)
190+
railties (>= 5.2)
191+
semantic_range (>= 2.3.0)
192+
websocket-driver (0.7.5)
193+
websocket-extensions (>= 0.1.0)
194+
websocket-extensions (0.1.5)
195+
xpath (3.2.0)
196+
nokogiri (~> 1.8)
197+
zeitwerk (2.4.2)
198+
199+
PLATFORMS
200+
x86_64-darwin-20
201+
202+
DEPENDENCIES
203+
bootsnap (>= 1.4.4)
204+
byebug
205+
capybara (>= 3.26)
206+
jbuilder (~> 2.7)
207+
listen (~> 3.3)
208+
pg (~> 1.1)
209+
puma (~> 5.0)
210+
rack-mini-profiler (~> 2.0)
211+
rails (~> 6.1.4)
212+
sass-rails (>= 6)
213+
selenium-webdriver
214+
spring
215+
turbolinks (~> 5)
216+
tzinfo-data
217+
web-console (>= 4.1.0)
218+
webdrivers
219+
webpacker (~> 5.0)
220+
221+
RUBY VERSION
222+
ruby 2.6.5p114
223+
224+
BUNDLED WITH
225+
2.2.25

Diff for: README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# README
2+
3+
To run the application locally, use the following commands:
4+
5+
```
6+
bundle install
7+
yarn install
8+
rails db:create
9+
rails db:seed
10+
rails s
11+
```

Diff for: Rakefile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add your own tasks in files placed in lib/tasks ending in .rake,
2+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3+
4+
require_relative "config/application"
5+
6+
Rails.application.load_tasks

Diff for: app/assets/config/manifest.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
//= link_tree ../images
2+
//= link_directory ../stylesheets .css

Diff for: app/assets/images/.keep

Whitespace-only changes.

Diff for: app/assets/stylesheets/api/v1/records.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Place all the styles related to the api/v1/records controller here.
2+
// They will automatically be included in application.css.
3+
// You can use Sass (SCSS) here: https://sass-lang.com/

Diff for: app/assets/stylesheets/application.css

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* This is a manifest file that'll be compiled into application.css, which will include all the files
3+
* listed below.
4+
*
5+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
6+
* vendor/assets/stylesheets directory can be referenced here using a relative path.
7+
*
8+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
9+
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10+
* files in this directory. Styles in this file should be added after the last require_* statement.
11+
* It is generally better to create a new file per style scope.
12+
*
13+
*= require_tree .
14+
*= require_self
15+
*/

Diff for: app/assets/stylesheets/pages.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Place all the styles related to the pages controller here.
2+
// They will automatically be included in application.css.
3+
// You can use Sass (SCSS) here: https://sass-lang.com/

Diff for: app/channels/application_cable/channel.rb

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module ApplicationCable
2+
class Channel < ActionCable::Channel::Base
3+
end
4+
end

Diff for: app/channels/application_cable/connection.rb

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module ApplicationCable
2+
class Connection < ActionCable::Connection::Base
3+
end
4+
end

0 commit comments

Comments
 (0)