Skip to content

Commit 2060a43

Browse files
committed
Create a api project for newbies
1 parent bc81a05 commit 2060a43

File tree

262 files changed

+61435
-38
lines changed

Some content is hidden

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

262 files changed

+61435
-38
lines changed

.gitignore

Lines changed: 11 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,17 @@
1-
*.rbc
2-
capybara-*.html
3-
.rspec
4-
/log
5-
/tmp
6-
/db/*.sqlite3
7-
/db/*.sqlite3-journal
8-
/public/system
9-
/coverage/
10-
/spec/tmp
11-
**.orig
12-
rerun.txt
13-
pickle-email-*.html
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'
146

15-
# TODO Comment out these rules if you are OK with secrets being uploaded to the repo
16-
config/initializers/secret_token.rb
17-
config/secrets.yml
18-
19-
# dotenv
20-
# TODO Comment out this rule if environment variables can be committed
21-
.env
22-
23-
## Environment normalization:
7+
# Ignore bundler config.
248
/.bundle
25-
/vendor/bundle
26-
27-
# these should all be checked in to normalize the environment:
28-
# Gemfile.lock, .ruby-version, .ruby-gemset
29-
30-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
31-
.rvmrc
32-
33-
# if using bower-rails ignore default bower_components path bower.json files
34-
/vendor/assets/bower_components
35-
*.bowerrc
36-
bower.json
379

38-
# Ignore pow environment settings
39-
.powenv
10+
# Ignore all logfiles and tempfiles.
11+
/log/*
12+
/tmp/*
13+
!/log/.keep
14+
!/tmp/.keep
4015

4116
# Ignore Byebug command history file.
4217
.byebug_history

.rspec

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

Gemfile

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
source 'https://rubygems.org'
2+
3+
4+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5+
gem 'rails', '~> 5.0.0', '>= 5.0.0.1'
6+
# Use postgresql as the database for Active Record
7+
gem 'pg', '~> 0.18'
8+
# Use Puma as the app server
9+
gem 'puma', '~> 3.0'
10+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
11+
# gem 'jbuilder', '~> 2.5'
12+
# Use Redis adapter to run Action Cable in production
13+
# gem 'redis', '~> 3.0'
14+
# Use ActiveModel has_secure_password
15+
# gem 'bcrypt', '~> 3.1.7'
16+
17+
# Use Capistrano for deployment
18+
# gem 'capistrano-rails', group: :development
19+
20+
# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
21+
gem 'rack-cors', '0.4.0'
22+
23+
gem 'rack-attack'
24+
25+
gem 'active_model_serializers', '0.10.2'
26+
27+
gem 'awesome_print'
28+
29+
gem 'swagger-docs'
30+
31+
group :development, :test do
32+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
33+
gem 'byebug', platform: :mri
34+
35+
# Use RSpec for specs
36+
gem 'rspec-rails', '3.5.2'
37+
38+
# Use Factory Girl for generating random test data
39+
gem 'factory_girl_rails'
40+
end
41+
42+
group :development do
43+
gem 'listen', '~> 3.0.5'
44+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
45+
gem 'spring'
46+
gem 'spring-watcher-listen', '~> 2.0.0'
47+
end
48+
49+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
50+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
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+
active_model_serializers (0.10.2)
28+
actionpack (>= 4.1, < 6)
29+
activemodel (>= 4.1, < 6)
30+
jsonapi (~> 0.1.1.beta2)
31+
railties (>= 4.1, < 6)
32+
activejob (5.0.0.1)
33+
activesupport (= 5.0.0.1)
34+
globalid (>= 0.3.6)
35+
activemodel (5.0.0.1)
36+
activesupport (= 5.0.0.1)
37+
activerecord (5.0.0.1)
38+
activemodel (= 5.0.0.1)
39+
activesupport (= 5.0.0.1)
40+
arel (~> 7.0)
41+
activesupport (5.0.0.1)
42+
concurrent-ruby (~> 1.0, >= 1.0.2)
43+
i18n (~> 0.7)
44+
minitest (~> 5.1)
45+
tzinfo (~> 1.1)
46+
arel (7.1.4)
47+
awesome_print (1.7.0)
48+
builder (3.2.2)
49+
byebug (9.0.6)
50+
concurrent-ruby (1.0.2)
51+
diff-lcs (1.2.5)
52+
erubis (2.7.0)
53+
factory_girl (4.7.0)
54+
activesupport (>= 3.0.0)
55+
factory_girl_rails (4.7.0)
56+
factory_girl (~> 4.7.0)
57+
railties (>= 3.0.0)
58+
ffi (1.9.14)
59+
globalid (0.3.7)
60+
activesupport (>= 4.1.0)
61+
i18n (0.7.0)
62+
jsonapi (0.1.1.beta5)
63+
jsonapi-parser (= 0.1.1.beta2)
64+
jsonapi-renderer (= 0.1.1.beta1)
65+
jsonapi-parser (0.1.1.beta2)
66+
jsonapi-renderer (0.1.1.beta1)
67+
listen (3.0.8)
68+
rb-fsevent (~> 0.9, >= 0.9.4)
69+
rb-inotify (~> 0.9, >= 0.9.7)
70+
loofah (2.0.3)
71+
nokogiri (>= 1.5.9)
72+
mail (2.6.4)
73+
mime-types (>= 1.16, < 4)
74+
method_source (0.8.2)
75+
mime-types (3.1)
76+
mime-types-data (~> 3.2015)
77+
mime-types-data (3.2016.0521)
78+
mini_portile2 (2.1.0)
79+
minitest (5.9.1)
80+
nio4r (1.2.1)
81+
nokogiri (1.6.8.1)
82+
mini_portile2 (~> 2.1.0)
83+
pg (0.19.0)
84+
puma (3.6.0)
85+
rack (2.0.1)
86+
rack-attack (5.0.1)
87+
rack
88+
rack-cors (0.4.0)
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+
rspec-core (3.5.4)
119+
rspec-support (~> 3.5.0)
120+
rspec-expectations (3.5.0)
121+
diff-lcs (>= 1.2.0, < 2.0)
122+
rspec-support (~> 3.5.0)
123+
rspec-mocks (3.5.0)
124+
diff-lcs (>= 1.2.0, < 2.0)
125+
rspec-support (~> 3.5.0)
126+
rspec-rails (3.5.2)
127+
actionpack (>= 3.0)
128+
activesupport (>= 3.0)
129+
railties (>= 3.0)
130+
rspec-core (~> 3.5.0)
131+
rspec-expectations (~> 3.5.0)
132+
rspec-mocks (~> 3.5.0)
133+
rspec-support (~> 3.5.0)
134+
rspec-support (3.5.0)
135+
spring (2.0.0)
136+
activesupport (>= 4.2)
137+
spring-watcher-listen (2.0.1)
138+
listen (>= 2.7, < 4.0)
139+
spring (>= 1.2, < 3.0)
140+
sprockets (3.7.0)
141+
concurrent-ruby (~> 1.0)
142+
rack (> 1, < 3)
143+
sprockets-rails (3.2.0)
144+
actionpack (>= 4.0)
145+
activesupport (>= 4.0)
146+
sprockets (>= 3.0.0)
147+
swagger-docs (0.2.9)
148+
activesupport (>= 3)
149+
rails (>= 3)
150+
thor (0.19.1)
151+
thread_safe (0.3.5)
152+
tzinfo (1.2.2)
153+
thread_safe (~> 0.1)
154+
websocket-driver (0.6.4)
155+
websocket-extensions (>= 0.1.0)
156+
websocket-extensions (0.1.2)
157+
158+
PLATFORMS
159+
ruby
160+
161+
DEPENDENCIES
162+
active_model_serializers (= 0.10.2)
163+
awesome_print
164+
byebug
165+
factory_girl_rails
166+
listen (~> 3.0.5)
167+
pg (~> 0.18)
168+
puma (~> 3.0)
169+
rack-attack
170+
rack-cors (= 0.4.0)
171+
rails (~> 5.0.0, >= 5.0.0.1)
172+
rspec-rails (= 3.5.2)
173+
spring
174+
spring-watcher-listen (~> 2.0.0)
175+
swagger-docs
176+
tzinfo-data
177+
178+
BUNDLED WITH
179+
1.13.1

0 commit comments

Comments
 (0)