Skip to content

Commit

Permalink
Add base web framework
Browse files Browse the repository at this point in the history
  • Loading branch information
remomueller committed Aug 2, 2018
0 parents commit 4218e9b
Show file tree
Hide file tree
Showing 90 changed files with 1,795 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
version: "2"
# Checks are enabled by default, uncomment lines to disable check.
# checks:
# argument-count:
# enabled: false
# complex-logic:
# enabled: false
# file-lines:
# enabled: false
# method-complexity:
# enabled: false
# method-count:
# enabled: false
# method-lines:
# enabled: false
# nested-control-flow:
# enabled: false
# return-statements:
# enabled: false
# similar-code:
# enabled: false
# identical-code:
# enabled: false
plugins:
rubocop:
enabled: true
# coffeelint:
# enabled: true
scss-lint:
enabled: true
fixme:
enabled: true
exclude_patterns:
- "app/assets/images/**/*"
- "app/assets/javascripts/external/**/*"
- "bin/**/*"
- "config/**/*"
- "db/**/*"
- "lib/**/*"
- "public/**/*"
- "test/**/*"
- "vendor/**/*"
- "CHANGELOG.md"
- "config.ru"
- "LICENSE"
- "Rakefile"
- "README.md"
33 changes: 33 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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 all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

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

/node_modules
/yarn-error.log

/public/assets
.byebug_history

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

# Ignore code coverage results.
/coverage/*

# Ignore OS generated files.
.DS_Store
74 changes: 74 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
AllCops:
TargetRubyVersion: 2.5
DisplayCopNames: true
Exclude:
- 'db/**/*'
- 'db/schema.rb'
# - 'config/**/*'
# - 'script/**/*'
Rails:
Enabled: true
# Style/Documentation:
# Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
# Frozen String Literal Pragma will not be needed in Ruby 3+ as it will be the
# default, Added `frozen_string_literal: true` to use this new default
Style/FrozenStringLiteralComment:
EnforcedStyle: always
# Strings assigned to constants will no longer be considered mutable in Ruby 3+
# This can be removed after Ruby 3 is released.
Style/MutableConstant:
Enabled: false
Rails/DynamicFindBy:
Whitelist:
- find_by_param
Rails/HasManyOrHasOneDependent:
Enabled: false
Rails/LexicallyScopedActionFilter:
Enabled: false
Rails/SkipsModelValidations:
Enabled: false
Rails/InverseOf:
Enabled: false

# Check quotes usage according to lint rule below.
Style/StringLiterals:
Enabled: true
EnforcedStyle: double_quotes

Style/StringLiteralsInInterpolation:
Enabled: true
EnforcedStyle: double_quotes

# Allow perl backrefs.
Style/PerlBackrefs:
Enabled: false

# Allow symbol arrays.
Style/SymbolArray:
Enabled: false

# Allow word arrays.
Style/WordArray:
Enabled: false

# Don't require brackets for white-space separated arrays.
Style/PercentLiteralDelimiters:
Enabled: false

# Don't require formatted string tokens.
Style/FormatStringToken:
Enabled: false

# Prefer consistent use of lambda literal syntax in single- and multi-line.
Style/Lambda:
EnforcedStyle: literal
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.5.1
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
sudo: false
language: ruby
rvm:
- 2.5.1
- ruby-head
# gemfile: "gems.rb"
before_install: gem install bundler --no-document # Fixes ruby 2.5.1 tests
before_script:
- cp config/.travis.database.yml config/database.yml
- psql -c 'create database travis_test;' -U postgres
matrix:
allow_failures:
- rvm: ruby-head
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## 1.0.0

### Enhancements
- **Base Web Framework Added**
- Rails for the web framework
- Amazon AWS for hosting and continuous deployment
- Travis CI for continuous integration testing
- Devise for authentication
- Bootstrap for user interface
- Font Awesome for icons
42 changes: 42 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# frozen_string_literal: true

# rubocop:disable Layout/ExtraSpacing
source "https://rubygems.org"

gem "rails", "5.2.0"

# Use PostgreSQL as the database for Active Record
gem "pg", ">= 0.18", "< 2.0"

# Gems used by project
gem "autoprefixer-rails"
gem "aws-sdk-s3", require: false
gem "bootstrap", "~> 4.1.3"
gem "devise", "~> 4.4.3"
gem "font-awesome-sass", "~> 5.2.0"
gem "haml", "~> 5.0.4"
gem "jquery-rails", "~> 4.3.3"
gem "kaminari", "~> 1.1.1"

# Rails defaults
gem "bootsnap", ">= 1.1.0", require: false
gem "coffee-rails", "~> 4.2"
gem "jbuilder", "~> 2.5"
gem "puma", "~> 3.11"
gem "sass-rails", "~> 5.0"
gem "turbolinks", "~> 5"
gem "uglifier", ">= 1.3.0"

group :development do
gem "listen", ">= 3.0.5", "< 3.2"
gem "spring"
gem "spring-watcher-listen", "~> 2.0.0"
gem "web-console", ">= 3.3.0"
end

group :test do
gem "capybara", ">= 2.15", "< 4.0"
gem "selenium-webdriver"
gem "simplecov", "~> 0.16.1", require: false
end
# rubocop:enable Layout/ExtraSpacing
Loading

0 comments on commit 4218e9b

Please sign in to comment.