Permalink
Browse files

first commit

  • Loading branch information...
bartconsedine committed Nov 8, 2019
1 parent f9f586b commit 80d4cdbea4411af8ac44b34254285b0c5c72a59e
Showing with 26,202 additions and 2 deletions.
  1. +30 −0 .gitignore
  2. +1 −0 .ruby-version
  3. +63 −0 Gemfile
  4. +248 −0 Gemfile.lock
  5. +2 −0 Procfile.dev
  6. +24 −2 README.md
  7. +6 −0 Rakefile
  8. +28 −0 app/admin/admin_users.rb
  9. +32 −0 app/admin/dashboard.rb
  10. +20 −0 app/admin/excerpts.rb
  11. +20 −0 app/admin/users.rb
  12. +1 −0 app/assets/config/manifest.js
  13. +1 −0 app/assets/javascripts/active_admin.js
  14. +17 −0 app/assets/stylesheets/active_admin.scss
  15. +4 −0 app/channels/application_cable/channel.rb
  16. +4 −0 app/channels/application_cable/connection.rb
  17. +3 −0 app/controllers/api_controller.rb
  18. +28 −0 app/controllers/application_controller.rb
  19. +29 −0 app/controllers/authentication_controller.rb
  20. 0 app/controllers/concerns/.keep
  21. +53 −0 app/controllers/excerpts_controller.rb
  22. +53 −0 app/controllers/users_controller.rb
  23. +2 −0 app/jobs/application_job.rb
  24. +4 −0 app/mailers/application_mailer.rb
  25. +6 −0 app/models/admin_user.rb
  26. +3 −0 app/models/application_record.rb
  27. 0 app/models/concerns/.keep
  28. +2 −0 app/models/excerpt.rb
  29. +9 −0 app/models/user.rb
  30. +13 −0 app/views/layouts/mailer.html.erb
  31. +1 −0 app/views/layouts/mailer.text.erb
  32. +3 −0 bin/bundle
  33. +9 −0 bin/rails
  34. +9 −0 bin/rake
  35. +33 −0 bin/setup
  36. +17 −0 bin/spring
  37. +28 −0 bin/update
  38. +23 −0 client/.gitignore
  39. +68 −0 client/README.md
  40. +13,105 −0 client/package-lock.json
  41. +35 −0 client/package.json
  42. BIN client/public/favicon.ico
  43. +43 −0 client/public/index.html
  44. BIN client/public/logo192.png
  45. BIN client/public/logo512.png
  46. +25 −0 client/public/manifest.json
  47. +2 −0 client/public/robots.txt
  48. +22 −0 client/src/App.css
  49. +148 −0 client/src/App.js
  50. +9 −0 client/src/App.test.js
  51. +24 −0 client/src/components/Chunkpage.js
  52. +19 −0 client/src/components/Chunksingle.js
  53. +28 −0 client/src/components/Login.js
  54. +36 −0 client/src/components/Register.js
  55. +13 −0 client/src/index.css
  56. +13 −0 client/src/index.js
  57. +1 −0 client/src/logo.svg
  58. +135 −0 client/src/serviceWorker.js
  59. +38 −0 client/src/services/api-helper.js
  60. +10,207 −0 client/yarn.lock
  61. +5 −0 config.ru
  62. +42 −0 config/application.rb
  63. +4 −0 config/boot.rb
  64. +10 −0 config/cable.yml
  65. +1 −0 config/credentials.yml.enc
  66. +25 −0 config/database.yml
  67. +5 −0 config/environment.rb
  68. +54 −0 config/environments/development.rb
  69. +85 −0 config/environments/production.rb
  70. +46 −0 config/environments/test.rb
  71. +328 −0 config/initializers/active_admin.rb
  72. +8 −0 config/initializers/application_controller_renderer.rb
  73. +7 −0 config/initializers/backtrace_silencers.rb
  74. +16 −0 config/initializers/cors.rb
  75. +299 −0 config/initializers/devise.rb
  76. +4 −0 config/initializers/filter_parameter_logging.rb
  77. +16 −0 config/initializers/inflections.rb
  78. +4 −0 config/initializers/mime_types.rb
  79. +14 −0 config/initializers/wrap_parameters.rb
  80. +65 −0 config/locales/devise.en.yml
  81. +33 −0 config/locales/en.yml
  82. +34 −0 config/puma.rb
  83. +16 −0 config/routes.rb
  84. +6 −0 config/spring.rb
  85. +34 −0 config/storage.yml
  86. +44 −0 db/migrate/20191107151318_devise_create_admin_users.rb
  87. +16 −0 db/migrate/20191107151320_create_active_admin_comments.rb
  88. +12 −0 db/migrate/20191107152316_create_users.rb
  89. +13 −0 db/migrate/20191107160857_create_excerpts.rb
  90. +59 −0 db/schema.rb
  91. +10 −0 db/seeds.rb
  92. 0 lib/tasks/.keep
  93. +8 −0 lib/tasks/start.rake
  94. 0 log/.keep
  95. BIN metricreader_development.sqlite3
  96. BIN metricreader_test.sqlite3
  97. 0 storage/.keep
  98. 0 test/controllers/.keep
  99. +7 −0 test/controllers/authentication_controller_test.rb
  100. 0 test/fixtures/.keep
  101. +11 −0 test/fixtures/admin_users.yml
  102. +15 −0 test/fixtures/excerpts.yml
  103. 0 test/fixtures/files/.keep
  104. +15 −0 test/fixtures/users.yml
  105. 0 test/integration/.keep
  106. 0 test/mailers/.keep
  107. 0 test/models/.keep
  108. +7 −0 test/models/admin_user_test.rb
  109. +7 −0 test/models/excerpt_test.rb
  110. +7 −0 test/models/user_test.rb
  111. +10 −0 test/test_helper.rb
  112. 0 tmp/.keep
  113. 0 vendor/.keep
@@ -0,0 +1,30 @@
# 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 the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal

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

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

.byebug_history

# Ignore master key for decrypting credentials and more.
/config/master.key

/public

@@ -0,0 +1 @@
ruby-2.6.3
63 Gemfile
@@ -0,0 +1,63 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.6.3'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.3'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use Puma as the app server
gem 'puma', '~> 3.11'
# 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'

gem 'rack-cors'

# 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

# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
# gem 'rack-cors'

group :development, :test do
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end

group :development do
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'
gem 'better_errors'
gem 'binding_of_caller'
end

group :production do
# Use postgres as the database for production
gem 'pg'
end

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


# ActiveAdmin
gem 'devise'
gem 'activeadmin'

# Use Json Web Token (JWT) for token based authentication
gem 'jwt'
@@ -0,0 +1,248 @@
GEM
remote: https://rubygems.org/
specs:
actioncable (5.2.3)
actionpack (= 5.2.3)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailer (5.2.3)
actionpack (= 5.2.3)
actionview (= 5.2.3)
activejob (= 5.2.3)
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)
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)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activeadmin (2.4.0)
arbre (~> 1.2, >= 1.2.1)
formtastic (~> 3.1)
formtastic_i18n (~> 0.4)
inherited_resources (~> 1.7)
jquery-rails (~> 4.2)
kaminari (~> 1.0, >= 1.0.1)
railties (>= 5.0, < 6.1)
ransack (~> 2.1, >= 2.1.1)
sassc-rails (~> 2.1)
sprockets (>= 3.0, < 4.1)
sprockets-es6 (~> 0.9, >= 0.9.2)
activejob (5.2.3)
activesupport (= 5.2.3)
globalid (>= 0.3.6)
activemodel (5.2.3)
activesupport (= 5.2.3)
activerecord (5.2.3)
activemodel (= 5.2.3)
activesupport (= 5.2.3)
arel (>= 9.0)
activestorage (5.2.3)
actionpack (= 5.2.3)
activerecord (= 5.2.3)
marcel (~> 0.3.1)
activesupport (5.2.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
arbre (1.2.1)
activesupport (>= 3.0.0)
arel (9.0.0)
babel-source (5.8.35)
babel-transpiler (0.7.0)
babel-source (>= 4.0, < 6)
execjs (~> 2.0)
bcrypt (3.1.13)
better_errors (2.5.1)
coderay (>= 1.0.0)
erubi (>= 1.0.0)
rack (>= 0.9.0)
binding_of_caller (0.8.0)
debug_inspector (>= 0.0.1)
bootsnap (1.4.5)
msgpack (~> 1.0)
builder (3.2.3)
byebug (11.0.1)
coderay (1.1.2)
concurrent-ruby (1.1.5)
crass (1.0.5)
debug_inspector (0.0.3)
devise (4.7.1)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 4.1.0)
responders
warden (~> 1.2.3)
erubi (1.9.0)
execjs (2.7.0)
ffi (1.11.1)
formtastic (3.1.5)
actionpack (>= 3.2.13)
formtastic_i18n (0.6.0)
globalid (0.4.2)
activesupport (>= 4.2.0)
has_scope (0.7.2)
actionpack (>= 4.1)
activesupport (>= 4.1)
i18n (1.7.0)
concurrent-ruby (~> 1.0)
inherited_resources (1.11.0)
actionpack (>= 5.0, < 6.1)
has_scope (~> 0.6)
railties (>= 5.0, < 6.1)
responders (>= 2, < 4)
jquery-rails (4.3.5)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
jwt (2.2.1)
kaminari (1.1.1)
activesupport (>= 4.1.0)
kaminari-actionview (= 1.1.1)
kaminari-activerecord (= 1.1.1)
kaminari-core (= 1.1.1)
kaminari-actionview (1.1.1)
actionview
kaminari-core (= 1.1.1)
kaminari-activerecord (1.1.1)
activerecord
kaminari-core (= 1.1.1)
kaminari-core (1.1.1)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
loofah (2.3.1)
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.2)
mini_portile2 (2.4.0)
minitest (5.13.0)
msgpack (1.3.1)
nio4r (2.5.2)
nokogiri (1.10.5)
mini_portile2 (~> 2.4.0)
orm_adapter (0.5.0)
pg (1.1.4)
polyamorous (2.3.0)
activerecord (>= 5.0)
puma (3.12.1)
rack (2.0.7)
rack-cors (1.0.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)
bundler (>= 1.3.0)
railties (= 5.2.3)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.3.0)
loofah (~> 2.3)
railties (5.2.3)
actionpack (= 5.2.3)
activesupport (= 5.2.3)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
rake (13.0.0)
ransack (2.3.0)
actionpack (>= 5.0)
activerecord (>= 5.0)
activesupport (>= 5.0)
i18n
polyamorous (= 2.3.0)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
responders (3.0.0)
actionpack (>= 5.0)
railties (>= 5.0)
ruby_dep (1.5.0)
sassc (2.2.1)
ffi (~> 1.9)
sassc-rails (2.1.2)
railties (>= 4.0.0)
sassc (>= 2.0)
sprockets (> 3.0)
sprockets-rails
tilt
spring (2.1.0)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (4.0.0)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-es6 (0.9.2)
babel-source (>= 5.8.11)
babel-transpiler
sprockets (>= 3.0.0)
sprockets-rails (3.2.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.4.1)
thor (0.20.3)
thread_safe (0.3.6)
tilt (2.0.10)
tzinfo (1.2.5)
thread_safe (~> 0.1)
warden (1.2.8)
rack (>= 2.0.6)
websocket-driver (0.7.1)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.4)

PLATFORMS
ruby

DEPENDENCIES
activeadmin
bcrypt (~> 3.1.7)
better_errors
binding_of_caller
bootsnap (>= 1.1.0)
byebug
devise
jwt
listen (>= 3.0.5, < 3.2)
pg
puma (~> 3.11)
rack-cors
rails (~> 5.2.3)
spring
spring-watcher-listen (~> 2.0.0)
sqlite3
tzinfo-data

RUBY VERSION
ruby 2.6.3p62

BUNDLED WITH
2.0.2
@@ -0,0 +1,2 @@
web: PORT=3000 yarn --cwd client start
api: PORT=3001 bundle exec rails s
@@ -1,2 +1,24 @@
# metricreader
metricreader
# README

This README would normally document whatever steps are necessary to get the
application up and running.

Things you may want to cover:

* Ruby version

* System dependencies

* Configuration

* Database creation

* Database initialization

* How to run the test suite

* Services (job queues, cache servers, search engines, etc.)

* Deployment instructions

* ...
@@ -0,0 +1,6 @@
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require_relative 'config/application'

Rails.application.load_tasks
Oops, something went wrong.

0 comments on commit 80d4cdb

Please sign in to comment.