Skip to content

Commit 91f0de8

Browse files
committed
avArchive_api
Backend set up with models, serializers, and relationships
0 parents  commit 91f0de8

Some content is hidden

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

65 files changed

+1092
-0
lines changed

.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 all logfiles and tempfiles.
11+
/log/*
12+
/tmp/*
13+
!/log/.keep
14+
!/tmp/.keep
15+
16+
# Ignore uploaded files in development
17+
/storage/*
18+
!/storage/.keep
19+
20+
.byebug_history
21+
22+
# Ignore master key for decrypting credentials and more.
23+
/config/master.key

.ruby-version

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

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+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '2.6.1'
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7+
gem 'rails', '~> 5.2.3'
8+
# Use postgresql as the database for Active Record
9+
gem 'pg', '>= 0.18', '< 2.0'
10+
# Use Puma as the app server
11+
gem 'puma', '~> 3.11'
12+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
13+
# gem 'jbuilder', '~> 2.5'
14+
# Use Redis adapter to run Action Cable in production
15+
# gem 'redis', '~> 4.0'
16+
17+
# Use ActiveModel has_secure_password
18+
gem 'bcrypt', '~> 3.1.7'
19+
20+
# Use ActiveStorage variant
21+
# gem 'mini_magick', '~> 4.8'
22+
23+
# Use Capistrano for deployment
24+
# gem 'capistrano-rails', group: :development
25+
26+
# Reduces boot times through caching; required in config/boot.rb
27+
gem 'bootsnap', '>= 1.1.0', require: false
28+
29+
# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
30+
gem 'rack-cors'
31+
32+
33+
# Use JWT: https://github.com/jwt/ruby-jwt
34+
gem 'jwt'
35+
36+
#https://rubygems.org/gems/active_model_serializers/versions/0.9.3
37+
gem 'active_model_serializers', '~> 0.10.10'
38+
39+
group :development, :test do
40+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
41+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
42+
end
43+
44+
group :development do
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+
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

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (5.2.3)
5+
actionpack (= 5.2.3)
6+
nio4r (~> 2.0)
7+
websocket-driver (>= 0.6.1)
8+
actionmailer (5.2.3)
9+
actionpack (= 5.2.3)
10+
actionview (= 5.2.3)
11+
activejob (= 5.2.3)
12+
mail (~> 2.5, >= 2.5.4)
13+
rails-dom-testing (~> 2.0)
14+
actionpack (5.2.3)
15+
actionview (= 5.2.3)
16+
activesupport (= 5.2.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.2.3)
22+
activesupport (= 5.2.3)
23+
builder (~> 3.1)
24+
erubi (~> 1.4)
25+
rails-dom-testing (~> 2.0)
26+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
27+
active_model_serializers (0.10.10)
28+
actionpack (>= 4.1, < 6.1)
29+
activemodel (>= 4.1, < 6.1)
30+
case_transform (>= 0.2)
31+
jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
32+
activejob (5.2.3)
33+
activesupport (= 5.2.3)
34+
globalid (>= 0.3.6)
35+
activemodel (5.2.3)
36+
activesupport (= 5.2.3)
37+
activerecord (5.2.3)
38+
activemodel (= 5.2.3)
39+
activesupport (= 5.2.3)
40+
arel (>= 9.0)
41+
activestorage (5.2.3)
42+
actionpack (= 5.2.3)
43+
activerecord (= 5.2.3)
44+
marcel (~> 0.3.1)
45+
activesupport (5.2.3)
46+
concurrent-ruby (~> 1.0, >= 1.0.2)
47+
i18n (>= 0.7, < 2)
48+
minitest (~> 5.1)
49+
tzinfo (~> 1.1)
50+
arel (9.0.0)
51+
bcrypt (3.1.13)
52+
bootsnap (1.4.4)
53+
msgpack (~> 1.0)
54+
builder (3.2.3)
55+
byebug (11.0.1)
56+
case_transform (0.2)
57+
activesupport
58+
concurrent-ruby (1.1.5)
59+
crass (1.0.4)
60+
erubi (1.8.0)
61+
ffi (1.11.1)
62+
globalid (0.4.2)
63+
activesupport (>= 4.2.0)
64+
i18n (1.6.0)
65+
concurrent-ruby (~> 1.0)
66+
jsonapi-renderer (0.2.2)
67+
jwt (2.2.1)
68+
listen (3.1.5)
69+
rb-fsevent (~> 0.9, >= 0.9.4)
70+
rb-inotify (~> 0.9, >= 0.9.7)
71+
ruby_dep (~> 1.2)
72+
loofah (2.2.3)
73+
crass (~> 1.0.2)
74+
nokogiri (>= 1.5.9)
75+
mail (2.7.1)
76+
mini_mime (>= 0.1.1)
77+
marcel (0.3.3)
78+
mimemagic (~> 0.3.2)
79+
method_source (0.9.2)
80+
mimemagic (0.3.3)
81+
mini_mime (1.0.2)
82+
mini_portile2 (2.4.0)
83+
minitest (5.11.3)
84+
msgpack (1.3.1)
85+
nio4r (2.4.0)
86+
nokogiri (1.10.3)
87+
mini_portile2 (~> 2.4.0)
88+
pg (1.1.4)
89+
puma (3.12.1)
90+
rack (2.0.7)
91+
rack-cors (1.0.3)
92+
rack-test (1.1.0)
93+
rack (>= 1.0, < 3)
94+
rails (5.2.3)
95+
actioncable (= 5.2.3)
96+
actionmailer (= 5.2.3)
97+
actionpack (= 5.2.3)
98+
actionview (= 5.2.3)
99+
activejob (= 5.2.3)
100+
activemodel (= 5.2.3)
101+
activerecord (= 5.2.3)
102+
activestorage (= 5.2.3)
103+
activesupport (= 5.2.3)
104+
bundler (>= 1.3.0)
105+
railties (= 5.2.3)
106+
sprockets-rails (>= 2.0.0)
107+
rails-dom-testing (2.0.3)
108+
activesupport (>= 4.2.0)
109+
nokogiri (>= 1.6)
110+
rails-html-sanitizer (1.2.0)
111+
loofah (~> 2.2, >= 2.2.2)
112+
railties (5.2.3)
113+
actionpack (= 5.2.3)
114+
activesupport (= 5.2.3)
115+
method_source
116+
rake (>= 0.8.7)
117+
thor (>= 0.19.0, < 2.0)
118+
rake (12.3.3)
119+
rb-fsevent (0.10.3)
120+
rb-inotify (0.10.0)
121+
ffi (~> 1.0)
122+
ruby_dep (1.5.0)
123+
spring (2.1.0)
124+
spring-watcher-listen (2.0.1)
125+
listen (>= 2.7, < 4.0)
126+
spring (>= 1.2, < 3.0)
127+
sprockets (3.7.2)
128+
concurrent-ruby (~> 1.0)
129+
rack (> 1, < 3)
130+
sprockets-rails (3.2.1)
131+
actionpack (>= 4.0)
132+
activesupport (>= 4.0)
133+
sprockets (>= 3.0.0)
134+
thor (0.20.3)
135+
thread_safe (0.3.6)
136+
tzinfo (1.2.5)
137+
thread_safe (~> 0.1)
138+
websocket-driver (0.7.1)
139+
websocket-extensions (>= 0.1.0)
140+
websocket-extensions (0.1.4)
141+
142+
PLATFORMS
143+
ruby
144+
145+
DEPENDENCIES
146+
active_model_serializers (~> 0.10.10)
147+
bcrypt (~> 3.1.7)
148+
bootsnap (>= 1.1.0)
149+
byebug
150+
jwt
151+
listen (>= 3.0.5, < 3.2)
152+
pg (>= 0.18, < 2.0)
153+
puma (~> 3.11)
154+
rack-cors
155+
rails (~> 5.2.3)
156+
spring
157+
spring-watcher-listen (~> 2.0.0)
158+
tzinfo-data
159+
160+
RUBY VERSION
161+
ruby 2.6.1p33
162+
163+
BUNDLED WITH
164+
2.0.2

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
Lines changed: 4 additions & 0 deletions
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
Lines changed: 4 additions & 0 deletions
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
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationController < ActionController::API
2+
3+
end

app/controllers/auth_controller.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class AuthController < ApplicationController
2+
3+
end

0 commit comments

Comments
 (0)