Skip to content

Commit cddac34

Browse files
author
Alex Tatarnikov
committed
Initial Commit
0 parents  commit cddac34

File tree

116 files changed

+6561
-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.

116 files changed

+6561
-0
lines changed

.gitignore

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+
# Local configuration
11+
/.env
12+
/.haml-lint.yml
13+
/.reek
14+
/.rubocop.yml
15+
/.yardoc
16+
/config/database.yml
17+
/config/elasticsearch.yml
18+
19+
# IDE projects
20+
/*.sublime-project
21+
/*.sublime-workspace
22+
/.gems_path
23+
/.gemtags
24+
/.idea
25+
/.project
26+
/.tags*
27+
/.tags_sorted_by_file
28+
29+
# Local Ruby environment
30+
/.ruby-version
31+
/.sass-cache
32+
/log
33+
/spec/tmp/*
34+
.~lock
35+
36+
# Ignore all logfiles and tempfiles.
37+
/log/*
38+
/bin/*.log
39+
/tmp/*
40+
!/log/.keep
41+
!/tmp/.keep
42+
43+
# Ignore Byebug command history file.
44+
.byebug_history
45+
46+
# Other
47+
.DS_Store
48+
/public/packs
49+
/vendor/node_modules
50+
/vendor/*.log
51+
/vendor/.yarnclean
52+
/public/packs
53+
/node_modules

.postcssrc.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
plugins:
2+
postcss-smart-import: {}
3+
precss: {}
4+
autoprefixer: {}

Gemfile

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
source 'https://rubygems.org'
2+
3+
git_source(:github) do |repo_name|
4+
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?('/')
5+
"https://github.com/#{repo_name}.git"
6+
end
7+
8+
ruby '2.4.1'
9+
10+
gem 'rails', '~> 5.0.2'
11+
gem 'pg', '~> 0.19'
12+
gem 'puma', '~> 3.0'
13+
14+
gem 'hamlit', '~> 2.8'
15+
gem 'simple_form'
16+
17+
gem 'elasticsearch-model'
18+
gem 'elasticsearch-rails'
19+
20+
# Front-end stuff
21+
gem 'webpacker'
22+
gem 'bootstrap-sass', '~> 3.3.6'
23+
gem 'sass-rails', '>= 3.2'
24+
25+
# Background jobs
26+
gem 'sidekiq', '~> 4.2'
27+
gem 'sidekiq-scheduler', '~> 2.0'
28+
gem 'sidekiq-failures'
29+
gem 'redis-namespace'
30+
31+
group :development, :test do
32+
# Console
33+
gem 'rails_dt'
34+
end
35+
36+
group :development do
37+
gem 'listen', '~> 3.0.5'
38+
gem 'letter_opener'
39+
end

Gemfile.lock

+213
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,213 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (5.0.2)
5+
actionpack (= 5.0.2)
6+
nio4r (>= 1.2, < 3.0)
7+
websocket-driver (~> 0.6.1)
8+
actionmailer (5.0.2)
9+
actionpack (= 5.0.2)
10+
actionview (= 5.0.2)
11+
activejob (= 5.0.2)
12+
mail (~> 2.5, >= 2.5.4)
13+
rails-dom-testing (~> 2.0)
14+
actionpack (5.0.2)
15+
actionview (= 5.0.2)
16+
activesupport (= 5.0.2)
17+
rack (~> 2.0)
18+
rack-test (~> 0.6.3)
19+
rails-dom-testing (~> 2.0)
20+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
21+
actionview (5.0.2)
22+
activesupport (= 5.0.2)
23+
builder (~> 3.1)
24+
erubis (~> 2.7.0)
25+
rails-dom-testing (~> 2.0)
26+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
27+
activejob (5.0.2)
28+
activesupport (= 5.0.2)
29+
globalid (>= 0.3.6)
30+
activemodel (5.0.2)
31+
activesupport (= 5.0.2)
32+
activerecord (5.0.2)
33+
activemodel (= 5.0.2)
34+
activesupport (= 5.0.2)
35+
arel (~> 7.0)
36+
activesupport (5.0.2)
37+
concurrent-ruby (~> 1.0, >= 1.0.2)
38+
i18n (~> 0.7)
39+
minitest (~> 5.1)
40+
tzinfo (~> 1.1)
41+
addressable (2.5.0)
42+
public_suffix (~> 2.0, >= 2.0.2)
43+
arel (7.1.4)
44+
autoprefixer-rails (6.7.7.1)
45+
execjs
46+
bootstrap-sass (3.3.7)
47+
autoprefixer-rails (>= 5.2.1)
48+
sass (>= 3.3.4)
49+
builder (3.2.3)
50+
concurrent-ruby (1.0.5)
51+
connection_pool (2.2.1)
52+
elasticsearch (5.0.3)
53+
elasticsearch-api (= 5.0.3)
54+
elasticsearch-transport (= 5.0.3)
55+
elasticsearch-api (5.0.3)
56+
multi_json
57+
elasticsearch-model (0.1.9)
58+
activesupport (> 3)
59+
elasticsearch (> 0.4)
60+
hashie
61+
elasticsearch-rails (0.1.9)
62+
elasticsearch-transport (5.0.3)
63+
faraday
64+
multi_json
65+
erubis (2.7.0)
66+
et-orbi (1.0.2)
67+
tzinfo
68+
execjs (2.7.0)
69+
faraday (0.11.0)
70+
multipart-post (>= 1.2, < 3)
71+
ffi (1.9.18)
72+
globalid (0.3.7)
73+
activesupport (>= 4.1.0)
74+
hamlit (2.8.0)
75+
temple (>= 0.8.0)
76+
thor
77+
tilt
78+
hashie (3.5.5)
79+
i18n (0.8.1)
80+
launchy (2.4.3)
81+
addressable (~> 2.3)
82+
letter_opener (1.4.1)
83+
launchy (~> 2.2)
84+
listen (3.0.8)
85+
rb-fsevent (~> 0.9, >= 0.9.4)
86+
rb-inotify (~> 0.9, >= 0.9.7)
87+
loofah (2.0.3)
88+
nokogiri (>= 1.5.9)
89+
mail (2.6.4)
90+
mime-types (>= 1.16, < 4)
91+
method_source (0.8.2)
92+
mime-types (3.1)
93+
mime-types-data (~> 3.2015)
94+
mime-types-data (3.2016.0521)
95+
mini_portile2 (2.1.0)
96+
minitest (5.10.1)
97+
multi_json (1.12.1)
98+
multipart-post (2.0.0)
99+
nio4r (2.0.0)
100+
nokogiri (1.7.1)
101+
mini_portile2 (~> 2.1.0)
102+
pg (0.20.0)
103+
public_suffix (2.0.5)
104+
puma (3.8.2)
105+
rack (2.0.1)
106+
rack-protection (1.5.3)
107+
rack
108+
rack-test (0.6.3)
109+
rack (>= 1.0)
110+
rails (5.0.2)
111+
actioncable (= 5.0.2)
112+
actionmailer (= 5.0.2)
113+
actionpack (= 5.0.2)
114+
actionview (= 5.0.2)
115+
activejob (= 5.0.2)
116+
activemodel (= 5.0.2)
117+
activerecord (= 5.0.2)
118+
activesupport (= 5.0.2)
119+
bundler (>= 1.3.0, < 2.0)
120+
railties (= 5.0.2)
121+
sprockets-rails (>= 2.0.0)
122+
rails-dom-testing (2.0.2)
123+
activesupport (>= 4.2.0, < 6.0)
124+
nokogiri (~> 1.6)
125+
rails-html-sanitizer (1.0.3)
126+
loofah (~> 2.0)
127+
rails_dt (0.1.4)
128+
railties (5.0.2)
129+
actionpack (= 5.0.2)
130+
activesupport (= 5.0.2)
131+
method_source
132+
rake (>= 0.8.7)
133+
thor (>= 0.18.1, < 2.0)
134+
rake (12.0.0)
135+
rb-fsevent (0.9.8)
136+
rb-inotify (0.9.8)
137+
ffi (>= 0.5.0)
138+
redis (3.3.3)
139+
redis-namespace (1.5.3)
140+
redis (~> 3.0, >= 3.0.4)
141+
rufus-scheduler (3.4.0)
142+
et-orbi (~> 1.0)
143+
sass (3.4.23)
144+
sass-rails (5.0.6)
145+
railties (>= 4.0.0, < 6)
146+
sass (~> 3.1)
147+
sprockets (>= 2.8, < 4.0)
148+
sprockets-rails (>= 2.0, < 4.0)
149+
tilt (>= 1.1, < 3)
150+
sidekiq (4.2.10)
151+
concurrent-ruby (~> 1.0)
152+
connection_pool (~> 2.2, >= 2.2.0)
153+
rack-protection (>= 1.5.0)
154+
redis (~> 3.2, >= 3.2.1)
155+
sidekiq-failures (0.4.5)
156+
sidekiq (>= 2.16.0)
157+
sidekiq-scheduler (2.1.2)
158+
hashie (~> 3.4)
159+
redis (~> 3)
160+
rufus-scheduler (~> 3.2)
161+
sidekiq (>= 3)
162+
tilt (>= 1.4.0)
163+
simple_form (3.4.0)
164+
actionpack (> 4, < 5.1)
165+
activemodel (> 4, < 5.1)
166+
sprockets (3.7.1)
167+
concurrent-ruby (~> 1.0)
168+
rack (> 1, < 3)
169+
sprockets-rails (3.2.0)
170+
actionpack (>= 4.0)
171+
activesupport (>= 4.0)
172+
sprockets (>= 3.0.0)
173+
temple (0.8.0)
174+
thor (0.19.4)
175+
thread_safe (0.3.6)
176+
tilt (2.0.7)
177+
tzinfo (1.2.3)
178+
thread_safe (~> 0.1)
179+
webpacker (1.1)
180+
activesupport (>= 4.2)
181+
multi_json (~> 1.2)
182+
railties (>= 4.2)
183+
websocket-driver (0.6.5)
184+
websocket-extensions (>= 0.1.0)
185+
websocket-extensions (0.1.2)
186+
187+
PLATFORMS
188+
ruby
189+
190+
DEPENDENCIES
191+
bootstrap-sass (~> 3.3.6)
192+
elasticsearch-model
193+
elasticsearch-rails
194+
hamlit (~> 2.8)
195+
letter_opener
196+
listen (~> 3.0.5)
197+
pg (~> 0.19)
198+
puma (~> 3.0)
199+
rails (~> 5.0.2)
200+
rails_dt
201+
redis-namespace
202+
sass-rails (>= 3.2)
203+
sidekiq (~> 4.2)
204+
sidekiq-failures
205+
sidekiq-scheduler (~> 2.0)
206+
simple_form
207+
webpacker
208+
209+
RUBY VERSION
210+
ruby 2.4.1p111
211+
212+
BUNDLED WITH
213+
1.14.6

README.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Rails Test App
2+
#### Requirements:
3+
4+
* Ruby/Rails versions
5+
* ruby ~> '2.4.1'
6+
* rails ~> '5.0.2'
7+
8+
* System dependencies
9+
* PostgreSQL
10+
* Node.js ~> '6.0'
11+
* Yarn
12+
* Elasticsearch ~> '5.0'
13+
* Redis
14+
15+
* Services
16+
* Sidekiq
17+
18+
* Configuration
19+
* you need to copy a versions of `config/*.yml.example` to `config/*.yml`
20+
and change the values according to your system configuration
21+
22+
#### Deploy Tips
23+
* Webpack
24+
* Use `./bin/yarn install --production` to install all required npm dependencies.
25+
* Precompile packs only when something updated in `config/webpack` or `app/javascript`.
26+
* Check [Webpacker](https://github.com/rails/webpacker) documentation for further information.
27+
28+
*Version 27 March 2017 by JetRuby Agency*
29+

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

app/assets/config/manifest.js

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

app/assets/images/.keep

Whitespace-only changes.
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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, vendor/assets/stylesheets,
6+
* or any plugin's 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_self
14+
*/
15+
16+
@import "bootstrap-sprockets";
17+
@import "bootstrap";
18+
@import "theme";

app/assets/stylesheets/theme.scss

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
body {
2+
padding-top: 50px;
3+
}
4+
.starter-template {
5+
padding: 40px 15px;
6+
text-align: center;
7+
}
8+
9+
.flash-messages {
10+
margin-top: 20px;
11+
text-align: center;
12+
}
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
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationController < ActionController::Base
2+
protect_from_forgery with: :exception
3+
end

app/controllers/concerns/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)