Skip to content

Commit 67c29e1

Browse files
서동욱서동욱
서동욱
authored and
서동욱
committed
first
0 parents  commit 67c29e1

File tree

110 files changed

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

110 files changed

+1432
-0
lines changed

.gitignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
# Ignore Byebug command history file.
21+
.byebug_history

Gemfile

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

Gemfile.lock

+178
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (5.0.0.1)
5+
actionpack (= 5.0.0.1)
6+
nio4r (~> 1.2)
7+
websocket-driver (~> 0.6.1)
8+
actionmailer (5.0.0.1)
9+
actionpack (= 5.0.0.1)
10+
actionview (= 5.0.0.1)
11+
activejob (= 5.0.0.1)
12+
mail (~> 2.5, >= 2.5.4)
13+
rails-dom-testing (~> 2.0)
14+
actionpack (5.0.0.1)
15+
actionview (= 5.0.0.1)
16+
activesupport (= 5.0.0.1)
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.0.1)
22+
activesupport (= 5.0.0.1)
23+
builder (~> 3.1)
24+
erubis (~> 2.7.0)
25+
rails-dom-testing (~> 2.0)
26+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
27+
activejob (5.0.0.1)
28+
activesupport (= 5.0.0.1)
29+
globalid (>= 0.3.6)
30+
activemodel (5.0.0.1)
31+
activesupport (= 5.0.0.1)
32+
activerecord (5.0.0.1)
33+
activemodel (= 5.0.0.1)
34+
activesupport (= 5.0.0.1)
35+
arel (~> 7.0)
36+
activesupport (5.0.0.1)
37+
concurrent-ruby (~> 1.0, >= 1.0.2)
38+
i18n (~> 0.7)
39+
minitest (~> 5.1)
40+
tzinfo (~> 1.1)
41+
arel (7.1.2)
42+
builder (3.2.2)
43+
byebug (9.0.5)
44+
coffee-rails (4.2.1)
45+
coffee-script (>= 2.2.0)
46+
railties (>= 4.0.0, < 5.2.x)
47+
coffee-script (2.4.1)
48+
coffee-script-source
49+
execjs
50+
coffee-script-source (1.10.0)
51+
concurrent-ruby (1.0.2)
52+
debug_inspector (0.0.2)
53+
erubis (2.7.0)
54+
execjs (2.7.0)
55+
faker (1.6.6)
56+
i18n (~> 0.5)
57+
ffi (1.9.14)
58+
globalid (0.3.7)
59+
activesupport (>= 4.1.0)
60+
i18n (0.7.0)
61+
jbuilder (2.6.0)
62+
activesupport (>= 3.0.0, < 5.1)
63+
multi_json (~> 1.2)
64+
jquery-rails (4.2.1)
65+
rails-dom-testing (>= 1, < 3)
66+
railties (>= 4.2.0)
67+
thor (>= 0.14, < 2.0)
68+
listen (3.0.8)
69+
rb-fsevent (~> 0.9, >= 0.9.4)
70+
rb-inotify (~> 0.9, >= 0.9.7)
71+
loofah (2.0.3)
72+
nokogiri (>= 1.5.9)
73+
mail (2.6.4)
74+
mime-types (>= 1.16, < 4)
75+
method_source (0.8.2)
76+
mime-types (3.1)
77+
mime-types-data (~> 3.2015)
78+
mime-types-data (3.2016.0521)
79+
mini_portile2 (2.1.0)
80+
minitest (5.9.0)
81+
multi_json (1.12.1)
82+
nio4r (1.2.1)
83+
nokogiri (1.6.8)
84+
mini_portile2 (~> 2.1.0)
85+
pkg-config (~> 1.1.7)
86+
pkg-config (1.1.7)
87+
puma (3.6.0)
88+
rack (2.0.1)
89+
rack-test (0.6.3)
90+
rack (>= 1.0)
91+
rails (5.0.0.1)
92+
actioncable (= 5.0.0.1)
93+
actionmailer (= 5.0.0.1)
94+
actionpack (= 5.0.0.1)
95+
actionview (= 5.0.0.1)
96+
activejob (= 5.0.0.1)
97+
activemodel (= 5.0.0.1)
98+
activerecord (= 5.0.0.1)
99+
activesupport (= 5.0.0.1)
100+
bundler (>= 1.3.0, < 2.0)
101+
railties (= 5.0.0.1)
102+
sprockets-rails (>= 2.0.0)
103+
rails-dom-testing (2.0.1)
104+
activesupport (>= 4.2.0, < 6.0)
105+
nokogiri (~> 1.6.0)
106+
rails-html-sanitizer (1.0.3)
107+
loofah (~> 2.0)
108+
railties (5.0.0.1)
109+
actionpack (= 5.0.0.1)
110+
activesupport (= 5.0.0.1)
111+
method_source
112+
rake (>= 0.8.7)
113+
thor (>= 0.18.1, < 2.0)
114+
rake (11.3.0)
115+
rb-fsevent (0.9.7)
116+
rb-inotify (0.9.7)
117+
ffi (>= 0.5.0)
118+
sass (3.4.22)
119+
sass-rails (5.0.6)
120+
railties (>= 4.0.0, < 6)
121+
sass (~> 3.1)
122+
sprockets (>= 2.8, < 4.0)
123+
sprockets-rails (>= 2.0, < 4.0)
124+
tilt (>= 1.1, < 3)
125+
spring (1.7.2)
126+
spring-watcher-listen (2.0.0)
127+
listen (>= 2.7, < 4.0)
128+
spring (~> 1.2)
129+
sprockets (3.7.0)
130+
concurrent-ruby (~> 1.0)
131+
rack (> 1, < 3)
132+
sprockets-rails (3.2.0)
133+
actionpack (>= 4.0)
134+
activesupport (>= 4.0)
135+
sprockets (>= 3.0.0)
136+
sqlite3 (1.3.11)
137+
thor (0.19.1)
138+
thread_safe (0.3.5)
139+
tilt (2.0.5)
140+
turbolinks (5.0.1)
141+
turbolinks-source (~> 5)
142+
turbolinks-source (5.0.0)
143+
tzinfo (1.2.2)
144+
thread_safe (~> 0.1)
145+
uglifier (3.0.2)
146+
execjs (>= 0.3.0, < 3)
147+
web-console (3.3.1)
148+
actionview (>= 5.0)
149+
activemodel (>= 5.0)
150+
debug_inspector
151+
railties (>= 5.0)
152+
websocket-driver (0.6.4)
153+
websocket-extensions (>= 0.1.0)
154+
websocket-extensions (0.1.2)
155+
156+
PLATFORMS
157+
ruby
158+
159+
DEPENDENCIES
160+
byebug
161+
coffee-rails (~> 4.2)
162+
faker
163+
jbuilder (~> 2.5)
164+
jquery-rails
165+
listen (~> 3.0.5)
166+
puma (~> 3.0)
167+
rails (~> 5.0.0, >= 5.0.0.1)
168+
sass-rails (~> 5.0)
169+
spring
170+
spring-watcher-listen (~> 2.0.0)
171+
sqlite3
172+
turbolinks (~> 5)
173+
tzinfo-data
174+
uglifier (>= 1.3.0)
175+
web-console
176+
177+
BUNDLED WITH
178+
1.12.5

README.md

+24
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

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

app/assets/javascripts/application.js

+16
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

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

app/assets/javascripts/members.coffee

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Place all the behaviors and hooks related to the matching controller here.
2+
# All this logic will automatically be available in application.js.
3+
# You can use CoffeeScript in this file: http://coffeescript.org/

app/assets/javascripts/places.coffee

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Place all the behaviors and hooks related to the matching controller here.
2+
# All this logic will automatically be available in application.js.
3+
# You can use CoffeeScript in this file: http://coffeescript.org/
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Place all the behaviors and hooks related to the matching controller here.
2+
# All this logic will automatically be available in application.js.
3+
# You can use CoffeeScript in this file: http://coffeescript.org/
+15
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+
*/

app/assets/stylesheets/members.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Place all the styles related to the members controller here.
2+
// They will automatically be included in application.css.
3+
// You can use Sass (SCSS) here: http://sass-lang.com/

app/assets/stylesheets/places.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Place all the styles related to the places controller here.
2+
// They will automatically be included in application.css.
3+
// You can use Sass (SCSS) here: http://sass-lang.com/

app/assets/stylesheets/visitors.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Place all the styles related to the visitors controller here.
2+
// They will automatically be included in application.css.
3+
// You can use Sass (SCSS) here: http://sass-lang.com/
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.

app/controllers/members_controller.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class MembersController < ApplicationController
2+
end

app/controllers/places_controller.rb

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class PlacesController < ApplicationController
2+
def index
3+
@places = Place.all
4+
end
5+
def show
6+
@place = Place.find(params[:id])
7+
end
8+
end
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class VisitorsController < ApplicationController
2+
end

app/helpers/application_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module ApplicationHelper
2+
end

app/helpers/members_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module MembersHelper
2+
end

app/helpers/places_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module PlacesHelper
2+
end

app/helpers/visitors_helper.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
module VisitorsHelper
2+
end

0 commit comments

Comments
 (0)