Permalink
Browse files

Add all rails-api-template files to git tracking

- All project names and README must be changed in proceeding commits.
  • Loading branch information...
bengitscode committed Jun 19, 2017
1 parent ba9fa11 commit b83f3d31f240773cac954505831654e8a1ca992e
Showing with 3,427 additions and 0 deletions.
  1. +37 −0 .editorconfig
  2. +150 −0 .gitignore
  3. +23 −0 .remarkrc
  4. +18 −0 .rubocop.yml
  5. +1 −0 .ruby-version
  6. +12 −0 CONTRIBUTING.md
  7. +31 −0 Gemfile
  8. +207 −0 Gemfile.lock
  9. +798 −0 LICENSE
  10. +1 −0 Procfile
  11. +300 −0 README.md
  12. +8 −0 Rakefile
  13. +16 −0 STYLE.md
  14. +5 −0 app/channels/application_cable/channel.rb
  15. +5 −0 app/channels/application_cable/connection.rb
  16. +55 −0 app/controllers/application_controller.rb
  17. 0 app/controllers/concerns/.keep
  18. +58 −0 app/controllers/examples_controller.rb
  19. +7 −0 app/controllers/open_read_controller.rb
  20. +5 −0 app/controllers/protected_controller.rb
  21. +73 −0 app/controllers/users_controller.rb
  22. +4 −0 app/jobs/application_job.rb
  23. +6 −0 app/mailers/application_mailer.rb
  24. +4 −0 app/models/application_record.rb
  25. +44 −0 app/models/concerns/authentication.rb
  26. +5 −0 app/models/example.rb
  27. +5 −0 app/models/user.rb
  28. +8 −0 app/serializers/example_serializer.rb
  29. +8 −0 app/serializers/user_login_serializer.rb
  30. +4 −0 app/serializers/user_serializer.rb
  31. +13 −0 app/views/layouts/mailer.html.erb
  32. +1 −0 app/views/layouts/mailer.text.erb
  33. +3 −0 bin/bundle
  34. +9 −0 bin/rails
  35. +9 −0 bin/rake
  36. +21 −0 bin/rspec
  37. +34 −0 bin/setup
  38. +17 −0 bin/spring
  39. +29 −0 bin/update
  40. +6 −0 config.ru
  41. +33 −0 config/application.rb
  42. +5 −0 config/boot.rb
  43. +9 −0 config/cable.yml
  44. +14 −0 config/database.yml
  45. +6 −0 config/environment.rb
  46. +48 −0 config/environments/development.rb
  47. +86 −0 config/environments/production.rb
  48. +44 −0 config/environments/test.rb
  49. +3 −0 config/initializers/active_model_serializers.rb
  50. +7 −0 config/initializers/application_controller_renderer.rb
  51. +10 −0 config/initializers/backtrace_silencers.rb
  52. +30 −0 config/initializers/cors.rb
  53. +5 −0 config/initializers/filter_parameter_logging.rb
  54. +17 −0 config/initializers/inflections.rb
  55. +5 −0 config/initializers/mime_types.rb
  56. +21 −0 config/initializers/new_framework_defaults.rb
  57. +14 −0 config/initializers/wrap_parameters.rb
  58. +23 −0 config/locales/en.yml
  59. +49 −0 config/puma.rb
  60. +9 −0 config/routes.rb
  61. +16 −0 config/secrets.yml
  62. +7 −0 config/spring.rb
  63. +19 −0 db/examples.rb
  64. +12 −0 db/migrate/001_create_users.rb
  65. +11 −0 db/migrate/002_create_examples.rb
  66. +37 −0 db/schema.rb
  67. +10 −0 db/seeds.rb
  68. +15 −0 lib/tasks/db.rake
  69. +5 −0 lib/tasks/test.rake
  70. +67 −0 public/404.html
  71. +67 −0 public/422.html
  72. +66 −0 public/500.html
  73. 0 public/favicon.ico
  74. +5 −0 public/robots.txt
  75. +17 −0 scripts/change-password.sh
  76. +16 −0 scripts/create-example.sh
  77. +10 −0 scripts/get-examples.sh
  78. +17 −0 scripts/sign-in.sh
  79. +11 −0 scripts/sign-out.sh
  80. +17 −0 scripts/sign-up.sh
  81. +10 −0 scripts/user.sh
  82. +10 −0 scripts/users.sh
  83. +126 −0 spec/controllers/users_spec.rb
  84. +5 −0 spec/models/user_spec.rb
  85. +57 −0 spec/rails_helper.rb
  86. +177 −0 spec/requests/users_spec.rb
  87. +40 −0 spec/routing/users_spec.rb
  88. +99 −0 spec/spec_helper.rb
@@ -0,0 +1,37 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

[*.js]
indent_style = space
indent_size = 2

[*.rb]
indent_style = space
indent_size = 2

[*.hbs]
insert_final_newline = false
indent_style = space
indent_size = 2

[*.css]
indent_style = space
indent_size = 2

[*.html]
indent_style = space
indent_size = 2

[*.{diff,md}]
trim_trailing_whitespace = false
@@ -0,0 +1,150 @@

# Created by https://www.gitignore.io/api/macos,linux

### macOS ###
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk


### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

# End of https://www.gitignore.io/api/macos,linux

# Created by https://www.gitignore.io/api/ruby

### Ruby ###
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
/tmp/

# Used by dotenv library to load environment variables.
# .env

## Specific to RubyMotion:
.dat*
.repl_history
build/
*.bridgesupport
build-iPhoneOS/
build-iPhoneSimulator/

## Specific to RubyMotion (use of CocoaPods):
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# vendor/Pods/

## Documentation cache and generated files:
/.yardoc/
/_yardoc/
/doc/
/rdoc/

## Environment normalization:
/.bundle/
/vendor/bundle
/lib/bundler/man/

# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# Gemfile.lock
# .ruby-version
# .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# End of https://www.gitignore.io/api/ruby

# Created by https://www.gitignore.io/api/rails

### Rails ###
*.rbc
capybara-*.html
.rspec
/log
/tmp
/db/*.sqlite3
/db/*.sqlite3-journal
/public/system
/coverage/
/spec/tmp
**.orig
rerun.txt
pickle-email-*.html

# TODO Comment out this rule if you are OK with secrets being uploaded to the repo
# config/initializers/secret_token.rb

# Only include if you have production secrets in this file, which is no longer a Rails default
# config/secrets.yml

# dotenv
# TODO Comment out this rule if environment variables can be committed
.env

## Environment normalization:
/.bundle
/vendor/bundle

# these should all be checked in to normalize the environment:
# Gemfile.lock, .ruby-version, .ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# if using bower-rails ignore default bower_components path bower.json files
/vendor/assets/bower_components
*.bowerrc # shouldn't be an issue in rails-api repositories
bower.json # same

# Ignore pow environment settings
.powenv

# Ignore Byebug command history file.
.byebug_history

# End of https://www.gitignore.io/api/rails
@@ -0,0 +1,23 @@
{
"plugins": {
"remark-lint": {
"blockquote-indentation": "2",
"checkbox-character-style": {
"checked": "x",
"unchecked": " "
},
"code-block-style": "fenced",
"heading-style": "atx",
"list-item-spacing": false,
"no-html": false,
"no-shortcut-reference-link": true,
"no-undefined-references": true,
"ordered-list-marker-value": "one",
"rule-style": "---",
"unordered-list-marker-style": "-"
}
},
"settings": {
"commonmark": true
}
}
@@ -0,0 +1,18 @@
Style/Documentation:
Exclude:
- 'app/**/*'
- 'db/migrate/**'

Metrics/BlockLength:
Exclude:
- 'spec/**/*'

AllCops:
TargetRubyVersion:
2.3
Exclude:
- 'bin/*'
- 'config/database.yml'
- 'db/schema.rb'
- 'spec/rails_helper.rb'
- 'spec/spec_helper.rb'
@@ -0,0 +1 @@
2.3.1
@@ -0,0 +1,12 @@
# Contributing

If you would like to contribute, please follow the [style guide](STYLE.md).
Issues labeled ["help
wanted"](https://github.com/ga-wdi-boston/meta/labels/help%20wanted) are a good
place to start!

To contribute, clone this repository. If you don't have commit access: fork,
clone, then pull request.

Feel free to comment on any issue, including proposed changes. If you have any
questions or want to discuss a new change, don't hesitate to file an issue.
31 Gemfile
@@ -0,0 +1,31 @@
# frozen_string_literal: true
#
source 'https://rubygems.org'
ruby '2.3.1'

gem 'active_model_serializers', '~> 0.10.0'
gem 'bcrypt', '~> 3.1.11'
gem 'pg'
gem 'puma', '~> 3.0'
gem 'rack-cors', require: 'rack/cors'
gem 'rails', '~> 5.0.1'

group :development, :test do
gem 'byebug', platform: :mri
gem 'dotenv-rails', '~> 2.1', '>= 2.1.1'
gem 'pry', '~> 0.10'
gem 'pry-byebug', '~> 3.3'
gem 'rspec-rails', '~> 3.5'
gem 'rubocop', '~> 0.46'
end

group :development do
gem 'listen', '~> 3.0.5'
gem 'pry-rails', '~> 0.3.4'
gem 'spring', '~> 1.6'
gem 'spring-commands-rspec', '~> 1.0'
end

group :production do
gem 'rails_12factor', '~> 0.0.3'
end
Oops, something went wrong.

0 comments on commit b83f3d3

Please sign in to comment.