Skip to content

Commit 1b7b748

Browse files
committed
Initial commit
0 parents  commit 1b7b748

Some content is hidden

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

75 files changed

+1196
-0
lines changed

.gitignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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 all logfiles and tempfiles.
11+
/log/*
12+
/tmp/*
13+
!/log/.keep
14+
!/tmp/.keep
15+
16+
# Ignore Byebug command history file.
17+
.byebug_history

Gemfile

+53
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 postgresql as the database for Active Record
12+
gem 'pg', '~> 0.18'
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]

Gemfile.lock

+174
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (5.0.3)
5+
actionpack (= 5.0.3)
6+
nio4r (>= 1.2, < 3.0)
7+
websocket-driver (~> 0.6.1)
8+
actionmailer (5.0.3)
9+
actionpack (= 5.0.3)
10+
actionview (= 5.0.3)
11+
activejob (= 5.0.3)
12+
mail (~> 2.5, >= 2.5.4)
13+
rails-dom-testing (~> 2.0)
14+
actionpack (5.0.3)
15+
actionview (= 5.0.3)
16+
activesupport (= 5.0.3)
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.3)
22+
activesupport (= 5.0.3)
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.3)
28+
activesupport (= 5.0.3)
29+
globalid (>= 0.3.6)
30+
activemodel (5.0.3)
31+
activesupport (= 5.0.3)
32+
activerecord (5.0.3)
33+
activemodel (= 5.0.3)
34+
activesupport (= 5.0.3)
35+
arel (~> 7.0)
36+
activesupport (5.0.3)
37+
concurrent-ruby (~> 1.0, >= 1.0.2)
38+
i18n (~> 0.7)
39+
minitest (~> 5.1)
40+
tzinfo (~> 1.1)
41+
arel (7.1.4)
42+
bindex (0.5.0)
43+
builder (3.2.3)
44+
byebug (9.0.6)
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+
erubis (2.7.0)
54+
execjs (2.7.0)
55+
ffi (1.9.18)
56+
globalid (0.4.0)
57+
activesupport (>= 4.2.0)
58+
i18n (0.8.1)
59+
jbuilder (2.6.4)
60+
activesupport (>= 3.0.0)
61+
multi_json (>= 1.2)
62+
jquery-rails (4.3.1)
63+
rails-dom-testing (>= 1, < 3)
64+
railties (>= 4.2.0)
65+
thor (>= 0.14, < 2.0)
66+
listen (3.0.8)
67+
rb-fsevent (~> 0.9, >= 0.9.4)
68+
rb-inotify (~> 0.9, >= 0.9.7)
69+
loofah (2.0.3)
70+
nokogiri (>= 1.5.9)
71+
mail (2.6.5)
72+
mime-types (>= 1.16, < 4)
73+
method_source (0.8.2)
74+
mime-types (3.1)
75+
mime-types-data (~> 3.2015)
76+
mime-types-data (3.2016.0521)
77+
mini_portile2 (2.1.0)
78+
minitest (5.10.2)
79+
multi_json (1.12.1)
80+
nio4r (2.1.0)
81+
nokogiri (1.7.2)
82+
mini_portile2 (~> 2.1.0)
83+
pg (0.20.0)
84+
puma (3.8.2)
85+
rack (2.0.3)
86+
rack-test (0.6.3)
87+
rack (>= 1.0)
88+
rails (5.0.3)
89+
actioncable (= 5.0.3)
90+
actionmailer (= 5.0.3)
91+
actionpack (= 5.0.3)
92+
actionview (= 5.0.3)
93+
activejob (= 5.0.3)
94+
activemodel (= 5.0.3)
95+
activerecord (= 5.0.3)
96+
activesupport (= 5.0.3)
97+
bundler (>= 1.3.0, < 2.0)
98+
railties (= 5.0.3)
99+
sprockets-rails (>= 2.0.0)
100+
rails-dom-testing (2.0.3)
101+
activesupport (>= 4.2.0)
102+
nokogiri (>= 1.6)
103+
rails-html-sanitizer (1.0.3)
104+
loofah (~> 2.0)
105+
railties (5.0.3)
106+
actionpack (= 5.0.3)
107+
activesupport (= 5.0.3)
108+
method_source
109+
rake (>= 0.8.7)
110+
thor (>= 0.18.1, < 2.0)
111+
rake (12.0.0)
112+
rb-fsevent (0.9.8)
113+
rb-inotify (0.9.8)
114+
ffi (>= 0.5.0)
115+
sass (3.4.24)
116+
sass-rails (5.0.6)
117+
railties (>= 4.0.0, < 6)
118+
sass (~> 3.1)
119+
sprockets (>= 2.8, < 4.0)
120+
sprockets-rails (>= 2.0, < 4.0)
121+
tilt (>= 1.1, < 3)
122+
spring (2.0.2)
123+
activesupport (>= 4.2)
124+
spring-watcher-listen (2.0.1)
125+
listen (>= 2.7, < 4.0)
126+
spring (>= 1.2, < 3.0)
127+
sprockets (3.7.1)
128+
concurrent-ruby (~> 1.0)
129+
rack (> 1, < 3)
130+
sprockets-rails (3.2.0)
131+
actionpack (>= 4.0)
132+
activesupport (>= 4.0)
133+
sprockets (>= 3.0.0)
134+
thor (0.19.4)
135+
thread_safe (0.3.6)
136+
tilt (2.0.7)
137+
turbolinks (5.0.1)
138+
turbolinks-source (~> 5)
139+
turbolinks-source (5.0.3)
140+
tzinfo (1.2.3)
141+
thread_safe (~> 0.1)
142+
uglifier (3.2.0)
143+
execjs (>= 0.3.0, < 3)
144+
web-console (3.5.1)
145+
actionview (>= 5.0)
146+
activemodel (>= 5.0)
147+
bindex (>= 0.4.0)
148+
railties (>= 5.0)
149+
websocket-driver (0.6.5)
150+
websocket-extensions (>= 0.1.0)
151+
websocket-extensions (0.1.2)
152+
153+
PLATFORMS
154+
ruby
155+
156+
DEPENDENCIES
157+
byebug
158+
coffee-rails (~> 4.2)
159+
jbuilder (~> 2.5)
160+
jquery-rails
161+
listen (~> 3.0.5)
162+
pg (~> 0.18)
163+
puma (~> 3.0)
164+
rails (~> 5.0.1)
165+
sass-rails (~> 5.0)
166+
spring
167+
spring-watcher-listen (~> 2.0.0)
168+
turbolinks (~> 5)
169+
tzinfo-data
170+
uglifier (>= 1.3.0)
171+
web-console (>= 3.3.0)
172+
173+
BUNDLED WITH
174+
1.15.0

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.
+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+
*/
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/helpers/application_helper.rb

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

app/jobs/application_job.rb

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class ApplicationJob < ActiveJob::Base
2+
end

app/mailers/application_mailer.rb

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class ApplicationMailer < ActionMailer::Base
2+
default from: 'from@example.com'
3+
layout 'mailer'
4+
end

app/models/application_record.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationRecord < ActiveRecord::Base
2+
self.abstract_class = true
3+
end

app/models/concerns/.keep

Whitespace-only changes.
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Photogram</title>
5+
<%= csrf_meta_tags %>
6+
7+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
8+
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
9+
</head>
10+
11+
<body>
12+
<%= yield %>
13+
</body>
14+
</html>

app/views/layouts/mailer.html.erb

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5+
<style>
6+
/* Email styles need to be inline */
7+
</style>
8+
</head>
9+
10+
<body>
11+
<%= yield %>
12+
</body>
13+
</html>

app/views/layouts/mailer.text.erb

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<%= yield %>

bin/bundle

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env ruby
2+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3+
load Gem.bin_path('bundler', 'bundle')

0 commit comments

Comments
 (0)