Skip to content

Commit dc67876

Browse files
Initialize repository
0 parents  commit dc67876

Some content is hidden

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

63 files changed

+976
-0
lines changed

.gitignore

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Created by https://www.gitignore.io/api/rails
2+
3+
### Rails ###
4+
*.rbc
5+
capybara-*.html
6+
.rspec
7+
/log
8+
/tmp
9+
/db/*.sqlite3
10+
/db/*.sqlite3-journal
11+
/public/system
12+
/coverage/
13+
/spec/tmp
14+
**.orig
15+
rerun.txt
16+
pickle-email-*.html
17+
18+
# TODO Comment out this rule if you are OK with secrets being uploaded to the repo
19+
config/initializers/secret_token.rb
20+
21+
# Only include if you have production secrets in this file, which is no longer a Rails default
22+
# config/secrets.yml
23+
24+
# dotenv
25+
# TODO Comment out this rule if environment variables can be committed
26+
.env
27+
28+
## Environment normalization:
29+
/.bundle
30+
/vendor/bundle
31+
32+
# these should all be checked in to normalize the environment:
33+
# Gemfile.lock, .ruby-version, .ruby-gemset
34+
35+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
36+
.rvmrc
37+
38+
# if using bower-rails ignore default bower_components path bower.json files
39+
/vendor/assets/bower_components
40+
*.bowerrc
41+
bower.json
42+
43+
# Ignore pow environment settings
44+
.powenv
45+
46+
# Ignore Byebug command history file.
47+
.byebug_history
48+
49+
# End of https://www.gitignore.io/api/rails

Gemfile

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

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# README
2+
3+
## versions
4+
- ruby
5+
- 2.4.0
6+
- rails
7+
- 5.0.1

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.

app/assets/javascripts/application.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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, vendor/assets/javascripts,
5+
// or any plugin's 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 jquery
14+
//= require jquery_ujs
15+
//= require turbolinks
16+
//= 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);

app/assets/javascripts/channels/.keep

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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_tree .
14+
*= require_self
15+
*/

0 commit comments

Comments
 (0)