Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f87132c

Browse files
committed
Initial
0 parents  commit f87132c

69 files changed

Lines changed: 1347 additions & 0 deletions

Some content is hidden

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

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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 the default SQLite database.
11+
/db/*.sqlite3
12+
/db/*.sqlite3-journal
13+
14+
# Ignore all logfiles and tempfiles.
15+
/log/*
16+
/tmp/*
17+
!/log/.keep
18+
!/tmp/.keep
19+
20+
/node_modules
21+
/yarn-error.log
22+
23+
.byebug_history

.rspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--require spec_helper

Gemfile

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
9+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
10+
gem 'rails', '~> 5.1.5'
11+
# Use sqlite3 as the database for Active Record
12+
gem 'sqlite3'
13+
# Use Puma as the app server
14+
gem 'puma', '~> 3.7'
15+
# Use SCSS for stylesheets
16+
gem 'sass-rails', '~> 5.0'
17+
# Use Uglifier as compressor for JavaScript assets
18+
gem 'uglifier', '>= 1.3.0'
19+
# See https://github.com/rails/execjs#readme for more supported runtimes
20+
# gem 'therubyracer', platforms: :ruby
21+
22+
# Use CoffeeScript for .coffee assets and views
23+
gem 'coffee-rails', '~> 4.2'
24+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
25+
gem 'turbolinks', '~> 5'
26+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
27+
gem 'jbuilder', '~> 2.5'
28+
# Use Redis adapter to run Action Cable in production
29+
# gem 'redis', '~> 4.0'
30+
# Use ActiveModel has_secure_password
31+
# gem 'bcrypt', '~> 3.1.7'
32+
33+
# Use Capistrano for deployment
34+
# gem 'capistrano-rails', group: :development
35+
36+
group :development, :test do
37+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
38+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
39+
gem 'rspec-rails', '~> 3.7'
40+
end
41+
42+
group :development do
43+
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
44+
gem 'web-console', '>= 3.3.0'
45+
gem 'listen', '>= 3.0.5', '< 3.2'
46+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
47+
gem 'spring'
48+
gem 'spring-watcher-listen', '~> 2.0.0'
49+
end
50+
51+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
52+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

Lines changed: 195 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,195 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (5.1.5)
5+
actionpack (= 5.1.5)
6+
nio4r (~> 2.0)
7+
websocket-driver (~> 0.6.1)
8+
actionmailer (5.1.5)
9+
actionpack (= 5.1.5)
10+
actionview (= 5.1.5)
11+
activejob (= 5.1.5)
12+
mail (~> 2.5, >= 2.5.4)
13+
rails-dom-testing (~> 2.0)
14+
actionpack (5.1.5)
15+
actionview (= 5.1.5)
16+
activesupport (= 5.1.5)
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.1.5)
22+
activesupport (= 5.1.5)
23+
builder (~> 3.1)
24+
erubi (~> 1.4)
25+
rails-dom-testing (~> 2.0)
26+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
27+
activejob (5.1.5)
28+
activesupport (= 5.1.5)
29+
globalid (>= 0.3.6)
30+
activemodel (5.1.5)
31+
activesupport (= 5.1.5)
32+
activerecord (5.1.5)
33+
activemodel (= 5.1.5)
34+
activesupport (= 5.1.5)
35+
arel (~> 8.0)
36+
activesupport (5.1.5)
37+
concurrent-ruby (~> 1.0, >= 1.0.2)
38+
i18n (~> 0.7)
39+
minitest (~> 5.1)
40+
tzinfo (~> 1.1)
41+
arel (8.0.0)
42+
bindex (0.5.0)
43+
builder (3.2.3)
44+
byebug (10.0.0)
45+
coffee-rails (4.2.2)
46+
coffee-script (>= 2.2.0)
47+
railties (>= 4.0.0)
48+
coffee-script (2.4.1)
49+
coffee-script-source
50+
execjs
51+
coffee-script-source (1.12.2)
52+
concurrent-ruby (1.0.5)
53+
crass (1.0.3)
54+
diff-lcs (1.3)
55+
erubi (1.7.0)
56+
execjs (2.7.0)
57+
ffi (1.9.21)
58+
globalid (0.4.1)
59+
activesupport (>= 4.2.0)
60+
i18n (0.9.5)
61+
concurrent-ruby (~> 1.0)
62+
jbuilder (2.7.0)
63+
activesupport (>= 4.2.0)
64+
multi_json (>= 1.2)
65+
listen (3.1.5)
66+
rb-fsevent (~> 0.9, >= 0.9.4)
67+
rb-inotify (~> 0.9, >= 0.9.7)
68+
ruby_dep (~> 1.2)
69+
loofah (2.2.0)
70+
crass (~> 1.0.2)
71+
nokogiri (>= 1.5.9)
72+
mail (2.7.0)
73+
mini_mime (>= 0.1.1)
74+
method_source (0.9.0)
75+
mini_mime (1.0.0)
76+
mini_portile2 (2.3.0)
77+
minitest (5.11.3)
78+
multi_json (1.13.1)
79+
nio4r (2.2.0)
80+
nokogiri (1.8.2)
81+
mini_portile2 (~> 2.3.0)
82+
puma (3.11.2)
83+
rack (2.0.4)
84+
rack-test (0.8.2)
85+
rack (>= 1.0, < 3)
86+
rails (5.1.5)
87+
actioncable (= 5.1.5)
88+
actionmailer (= 5.1.5)
89+
actionpack (= 5.1.5)
90+
actionview (= 5.1.5)
91+
activejob (= 5.1.5)
92+
activemodel (= 5.1.5)
93+
activerecord (= 5.1.5)
94+
activesupport (= 5.1.5)
95+
bundler (>= 1.3.0)
96+
railties (= 5.1.5)
97+
sprockets-rails (>= 2.0.0)
98+
rails-dom-testing (2.0.3)
99+
activesupport (>= 4.2.0)
100+
nokogiri (>= 1.6)
101+
rails-html-sanitizer (1.0.3)
102+
loofah (~> 2.0)
103+
railties (5.1.5)
104+
actionpack (= 5.1.5)
105+
activesupport (= 5.1.5)
106+
method_source
107+
rake (>= 0.8.7)
108+
thor (>= 0.18.1, < 2.0)
109+
rake (12.3.0)
110+
rb-fsevent (0.10.2)
111+
rb-inotify (0.9.10)
112+
ffi (>= 0.5.0, < 2)
113+
rspec-core (3.7.1)
114+
rspec-support (~> 3.7.0)
115+
rspec-expectations (3.7.0)
116+
diff-lcs (>= 1.2.0, < 2.0)
117+
rspec-support (~> 3.7.0)
118+
rspec-mocks (3.7.0)
119+
diff-lcs (>= 1.2.0, < 2.0)
120+
rspec-support (~> 3.7.0)
121+
rspec-rails (3.7.2)
122+
actionpack (>= 3.0)
123+
activesupport (>= 3.0)
124+
railties (>= 3.0)
125+
rspec-core (~> 3.7.0)
126+
rspec-expectations (~> 3.7.0)
127+
rspec-mocks (~> 3.7.0)
128+
rspec-support (~> 3.7.0)
129+
rspec-support (3.7.1)
130+
ruby_dep (1.5.0)
131+
sass (3.5.5)
132+
sass-listen (~> 4.0.0)
133+
sass-listen (4.0.0)
134+
rb-fsevent (~> 0.9, >= 0.9.4)
135+
rb-inotify (~> 0.9, >= 0.9.7)
136+
sass-rails (5.0.7)
137+
railties (>= 4.0.0, < 6)
138+
sass (~> 3.1)
139+
sprockets (>= 2.8, < 4.0)
140+
sprockets-rails (>= 2.0, < 4.0)
141+
tilt (>= 1.1, < 3)
142+
spring (2.0.2)
143+
activesupport (>= 4.2)
144+
spring-watcher-listen (2.0.1)
145+
listen (>= 2.7, < 4.0)
146+
spring (>= 1.2, < 3.0)
147+
sprockets (3.7.1)
148+
concurrent-ruby (~> 1.0)
149+
rack (> 1, < 3)
150+
sprockets-rails (3.2.1)
151+
actionpack (>= 4.0)
152+
activesupport (>= 4.0)
153+
sprockets (>= 3.0.0)
154+
sqlite3 (1.3.13)
155+
thor (0.20.0)
156+
thread_safe (0.3.6)
157+
tilt (2.0.8)
158+
turbolinks (5.1.0)
159+
turbolinks-source (~> 5.1)
160+
turbolinks-source (5.1.0)
161+
tzinfo (1.2.5)
162+
thread_safe (~> 0.1)
163+
uglifier (4.1.6)
164+
execjs (>= 0.3.0, < 3)
165+
web-console (3.5.1)
166+
actionview (>= 5.0)
167+
activemodel (>= 5.0)
168+
bindex (>= 0.4.0)
169+
railties (>= 5.0)
170+
websocket-driver (0.6.5)
171+
websocket-extensions (>= 0.1.0)
172+
websocket-extensions (0.1.3)
173+
174+
PLATFORMS
175+
ruby
176+
177+
DEPENDENCIES
178+
byebug
179+
coffee-rails (~> 4.2)
180+
jbuilder (~> 2.5)
181+
listen (>= 3.0.5, < 3.2)
182+
puma (~> 3.7)
183+
rails (~> 5.1.5)
184+
rspec-rails (~> 3.7)
185+
sass-rails (~> 5.0)
186+
spring
187+
spring-watcher-listen (~> 2.0.0)
188+
sqlite3
189+
turbolinks (~> 5)
190+
tzinfo-data
191+
uglifier (>= 1.3.0)
192+
web-console (>= 3.3.0)
193+
194+
BUNDLED WITH
195+
1.16.0

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# README
2+
3+
This README would normally document whatever steps are necessary to get the
4+
application up and running.
5+
6+
Things you may want to cover:
7+
8+
* Ruby version
9+
10+
* System dependencies
11+
12+
* Configuration
13+
14+
* Database creation
15+
16+
* Database initialization
17+
18+
* How to run the test suite
19+
20+
* Services (job queues, cache servers, search engines, etc.)
21+
22+
* Deployment instructions
23+
24+
* ...

Rakefile

Lines changed: 6 additions & 0 deletions
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

Lines changed: 3 additions & 0 deletions
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.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// This is a manifest file that'll be compiled into application.js, which will include all the files
2+
// listed below.
3+
//
4+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
5+
// vendor/assets/javascripts directory can be referenced here using a relative path.
6+
//
7+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8+
// compiled file. JavaScript code in this file should be added after the last require_* statement.
9+
//
10+
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11+
// about supported directives.
12+
//
13+
//= require rails-ujs
14+
//= require turbolinks
15+
//= require_tree .

app/assets/javascripts/cable.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Action Cable provides the framework to deal with WebSockets in Rails.
2+
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
3+
//
4+
//= require action_cable
5+
//= require_self
6+
//= require_tree ./channels
7+
8+
(function() {
9+
this.App || (this.App = {});
10+
11+
App.cable = ActionCable.createConsumer();
12+
13+
}).call(this);

0 commit comments

Comments
 (0)