Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
2a97237
Initial commit. Rails boilerplate.
jritten Dec 1, 2017
d4496c5
Remove coffee-rails.
jritten Dec 1, 2017
f939782
Set up rspec.
jritten Dec 1, 2017
8f2c928
Config for Rails API mode.
jritten Dec 1, 2017
34f7e2d
Add ruby version to Gemfile and .ruby-version
joshleichtung Dec 2, 2017
d3549c4
Added factory_bot_rails gem to Gemfile.
jritten Dec 4, 2017
ea631fc
Merge branch 'development' of https://github.com/jritten/BootUp-API i…
jritten Dec 4, 2017
a6a8d3e
Added factory_bot_rails gem to Gemfile.
jritten Dec 4, 2017
9e836c1
Generate initial schema models
joshleichtung Dec 4, 2017
075cf0a
Specify faker gem version
joshleichtung Dec 4, 2017
1391e42
Change interview user association to be interviewee
joshleichtung Dec 4, 2017
70497de
Add api scope to routes
joshleichtung Dec 4, 2017
cde40dd
Merge pull request #1 from DBC-BootUp/schema-create
jritten Dec 4, 2017
266160b
Update associations
joshleichtung Dec 4, 2017
cea6feb
Add factories and seed file for initial models
joshleichtung Dec 4, 2017
da6a7eb
Add dotenv-rails to Gemfile
joshleichtung Dec 4, 2017
2c8ce75
Add json_with_association methods to models
joshleichtung Dec 4, 2017
0203196
Add controllers and routes for models
joshleichtung Dec 4, 2017
d9e0d7d
Merge pull request #2 from DBC-BootUp/schema-create
jritten Dec 4, 2017
0900700
Added routes again.
jritten Dec 4, 2017
eb0947f
Merge pull request #3 from DBC-BootUp/controllers
jritten Dec 4, 2017
fb051b0
correction.
jritten Dec 4, 2017
b868c8b
Merge pull request #4 from DBC-BootUp/controller
jritten Dec 4, 2017
c373853
Add rspec test for company.
flash00 Dec 4, 2017
d3df52a
Complete company associations rspec.
flash00 Dec 4, 2017
a7fa4eb
Merge pull request #5 from DBC-BootUp/rspec
jritten Dec 4, 2017
a745759
Test search gem.
flash00 Dec 5, 2017
3dd4575
Add installation code for keyword search.
flash00 Dec 5, 2017
ca90903
Changed 'find_by(params[:id])' to 'find_by(id: params[:id]) in compan…
jritten Dec 5, 2017
61f46d6
Add Rack Cors gem for search function.
flash00 Dec 5, 2017
3bd2329
Frontend search function finished.
flash00 Dec 6, 2017
c5d501e
Update interview#create to save new interviews.
KennSugiyama Dec 6, 2017
304d29e
Merge pull request #7 from DBC-BootUp/Update-Interview_controller
KennSugiyama Dec 6, 2017
58a5ae6
Merge branch 'development' of https://github.com/jritten/BootUp-API i…
jritten Dec 6, 2017
909ebd0
Merge pull request #8 from DBC-BootUp/co_search
flash00 Dec 6, 2017
4334c28
Add OAuth gems for LinkedIn
joshleichtung Dec 6, 2017
60574fb
Add linked in user fields to model
joshleichtung Dec 6, 2017
da1f21e
Create Token module for encoding and decoding jwts
joshleichtung Dec 6, 2017
8c53090
Add support for sesssions and cookies so that omniauth will work
joshleichtung Dec 6, 2017
23044da
Add routes and controller for linkedin login
joshleichtung Dec 6, 2017
219d2c5
Add timestamps to Interview model json return
joshleichtung Dec 6, 2017
8c45e68
Merge pull request #9 from DBC-BootUp/add-timestamps-to-json
MatthewShepherd Dec 6, 2017
1cecbd6
Merge from development
joshleichtung Dec 6, 2017
4994f60
Update list of params put in the jwt token
joshleichtung Dec 7, 2017
22961bd
Add interviews, skills, and interviewees to json from company show
joshleichtung Dec 7, 2017
267b8af
Merge pull request #10 from DBC-BootUp/add-interviews-to-company-js
KennSugiyama Dec 7, 2017
e944838
Add completed registration flag to User
joshleichtung Dec 7, 2017
7744cdb
Make User#completed_registration false by default
joshleichtung Dec 7, 2017
55425a8
Merge branch 'development' into user-login
joshleichtung Dec 7, 2017
0be5ca5
Add logged_in? and current_user application controller methods
joshleichtung Dec 7, 2017
5ed1b33
More login and add logout functionality
joshleichtung Dec 7, 2017
33576f4
Allow Interview#create to utilize and require current_user to make ne…
joshleichtung Dec 7, 2017
e9f00ba
Merge pull request #11 from DBC-BootUp/user-login
jritten Dec 7, 2017
2f17677
corrections
jritten Dec 7, 2017
2425270
Add ability to search company by name
joshleichtung Dec 7, 2017
1620a4d
Merge pull request #12 from DBC-BootUp/search-company-by-name
flash00 Dec 8, 2017
702b269
Merge branch 'development' of https://github.com/jritten/BootUp-API i…
jritten Dec 8, 2017
e5c4578
company controller correction.
jritten Dec 8, 2017
d2c0b6d
Add seeds from real boots
joshleichtung Dec 8, 2017
7b47963
Merge pull request #13 from DBC-BootUp/csv
jritten Dec 8, 2017
387d308
Refactor CompaniesController#index to have full json with associations
joshleichtung Dec 8, 2017
5c37d0d
Add access restrictions to all routes except login
joshleichtung Dec 8, 2017
621ebc5
Fix bug in seed file preventing users from being created by email
joshleichtung Dec 8, 2017
3581a50
Change login redirect to go to interview index
joshleichtung Dec 8, 2017
4db7c22
Fix bug where users without linkedin photo can't log in
joshleichtung Dec 8, 2017
7e85ea3
Update README.md
jritten Dec 20, 2017
95fe75b
Update README.md
jritten Dec 20, 2017
c56945a
Update README.md
jritten Dec 20, 2017
460418c
Update README.md
jritten Dec 21, 2017
4627015
Add bootup logo.
jritten Dec 21, 2017
8211ede
Merge branch 'development' of https://github.com/jritten/BootUp-API i…
jritten Dec 21, 2017
0480e27
Update README.md
jritten Dec 21, 2017
c635cea
Update README.md
jritten Dec 21, 2017
934602c
Update README.md
jritten Dec 21, 2017
de26a09
Update README.md
jritten Dec 23, 2017
54dea85
Update README.md
jritten Dec 23, 2017
5d61309
Update README.md
jritten Dec 24, 2017
64b8953
Add link to deployed application
flash00 Feb 27, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.4.2
Binary file added BootUpLogo2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
source 'https://rubygems.org'
ruby '2.4.2'

git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.4'
# Use postgresql as the database for Active Record
gem 'pg', '~> 0.18'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use CoffeeScript for .coffee assets and views
# gem 'coffee-rails', '~> 4.2'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
gem 'bcrypt', '~> 3.1.7'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

gem 'omniauth'
gem 'omniauth-linkedin-oauth2'
gem 'pg_search'
gem 'rack-cors'

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'rspec-rails'
gem 'rails-controller-testing'
gem "factory_bot_rails", "~> 4.0"
gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master'
gem 'dotenv-rails'
gem 'shoulda-matchers', '~> 3.1'
end

group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
246 changes: 246 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
GIT
remote: https://github.com/stympy/faker.git
revision: 47b75064dc00fac534d2b87b69836746ea8c9fb3
branch: master
specs:
faker (1.8.4)
i18n (~> 0.9.1)

GEM
remote: https://rubygems.org/
specs:
actioncable (5.1.4)
actionpack (= 5.1.4)
nio4r (~> 2.0)
websocket-driver (~> 0.6.1)
actionmailer (5.1.4)
actionpack (= 5.1.4)
actionview (= 5.1.4)
activejob (= 5.1.4)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.1.4)
actionview (= 5.1.4)
activesupport (= 5.1.4)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.1.4)
activesupport (= 5.1.4)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
activejob (5.1.4)
activesupport (= 5.1.4)
globalid (>= 0.3.6)
activemodel (5.1.4)
activesupport (= 5.1.4)
activerecord (5.1.4)
activemodel (= 5.1.4)
activesupport (= 5.1.4)
arel (~> 8.0)
activesupport (5.1.4)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
arel (8.0.0)
bcrypt (3.1.11)
bindex (0.5.0)
builder (3.2.3)
byebug (9.1.0)
concurrent-ruby (1.0.5)
crass (1.0.3)
diff-lcs (1.3)
dotenv (2.2.1)
dotenv-rails (2.2.1)
dotenv (= 2.2.1)
railties (>= 3.2, < 5.2)
erubi (1.7.0)
execjs (2.7.0)
factory_bot (4.8.2)
activesupport (>= 3.0.0)
factory_bot_rails (4.8.2)
factory_bot (~> 4.8.2)
railties (>= 3.0.0)
faraday (0.12.2)
multipart-post (>= 1.2, < 3)
ffi (1.9.18)
globalid (0.4.1)
activesupport (>= 4.2.0)
hashie (3.5.6)
i18n (0.9.1)
concurrent-ruby (~> 1.0)
jbuilder (2.7.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
jwt (1.5.6)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
loofah (2.1.1)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.0)
mini_mime (>= 0.1.1)
method_source (0.9.0)
mini_mime (1.0.0)
mini_portile2 (2.3.0)
minitest (5.10.3)
multi_json (1.12.2)
multi_xml (0.6.0)
multipart-post (2.0.0)
nio4r (2.1.0)
nokogiri (1.8.1)
mini_portile2 (~> 2.3.0)
oauth2 (1.4.0)
faraday (>= 0.8, < 0.13)
jwt (~> 1.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (>= 1.2, < 3)
omniauth (1.7.1)
hashie (>= 3.4.6, < 3.6.0)
rack (>= 1.6.2, < 3)
omniauth-linkedin-oauth2 (0.2.5)
omniauth (~> 1.0)
omniauth-oauth2
omniauth-oauth2 (1.4.0)
oauth2 (~> 1.0)
omniauth (~> 1.2)
pg (0.21.0)
pg_search (2.1.1)
activerecord (>= 4.2)
activesupport (>= 4.2)
arel (>= 6)
puma (3.11.0)
rack (2.0.3)
rack-cors (1.0.2)
rack-test (0.8.2)
rack (>= 1.0, < 3)
rails (5.1.4)
actioncable (= 5.1.4)
actionmailer (= 5.1.4)
actionpack (= 5.1.4)
actionview (= 5.1.4)
activejob (= 5.1.4)
activemodel (= 5.1.4)
activerecord (= 5.1.4)
activesupport (= 5.1.4)
bundler (>= 1.3.0)
railties (= 5.1.4)
sprockets-rails (>= 2.0.0)
rails-controller-testing (1.0.2)
actionpack (~> 5.x, >= 5.0.1)
actionview (~> 5.x, >= 5.0.1)
activesupport (~> 5.x)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (5.1.4)
actionpack (= 5.1.4)
activesupport (= 5.1.4)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.3.0)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rspec-core (3.7.0)
rspec-support (~> 3.7.0)
rspec-expectations (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-mocks (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-rails (3.7.2)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.7.0)
rspec-expectations (~> 3.7.0)
rspec-mocks (~> 3.7.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.0)
ruby_dep (1.5.0)
sass (3.5.3)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sass-rails (5.0.7)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
shoulda-matchers (3.1.2)
activesupport (>= 4.0.0)
spring (2.0.2)
activesupport (>= 4.2)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.2.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
thor (0.20.0)
thread_safe (0.3.6)
tilt (2.0.8)
tzinfo (1.2.4)
thread_safe (~> 0.1)
uglifier (3.2.0)
execjs (>= 0.3.0, < 3)
web-console (3.5.1)
actionview (>= 5.0)
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)

PLATFORMS
ruby

DEPENDENCIES
bcrypt (~> 3.1.7)
byebug
dotenv-rails
factory_bot_rails (~> 4.0)
faker!
jbuilder (~> 2.5)
listen (>= 3.0.5, < 3.2)
omniauth
omniauth-linkedin-oauth2
pg (~> 0.18)
pg_search
puma (~> 3.7)
rack-cors
rails (~> 5.1.4)
rails-controller-testing
rspec-rails
sass-rails (~> 5.0)
shoulda-matchers (~> 3.1)
spring
spring-watcher-listen (~> 2.0.0)
tzinfo-data
uglifier (>= 1.3.0)
web-console (>= 3.3.0)

RUBY VERSION
ruby 2.4.2p198

BUNDLED WITH
1.16.0
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
# BootUp-API
<img src="https://github.com/DBC-BootUp/BootUp-API/blob/development/BootUpLogo2.png" width="250" />

[See Live](http://dbc-bootup.herokuapp.com/)

[Presentation](https://goo.gl/m2ATPc)

## BootUp-API

### BootUp [FrontEnd](https://github.com/DBC-BootUp/BootUp-REACT-FrontEnd/)
6 changes: 6 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require_relative 'config/application'

Rails.application.load_tasks
3 changes: 3 additions & 0 deletions app/assets/config/manifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//= link_tree ../images
//= link_directory ../javascripts .js
//= link_directory ../stylesheets .css
Empty file added app/assets/images/.keep
Empty file.
14 changes: 14 additions & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
// vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file. JavaScript code in this file should be added after the last require_* statement.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require rails-ujs
//= require_tree .
13 changes: 13 additions & 0 deletions app/assets/javascripts/cable.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Action Cable provides the framework to deal with WebSockets in Rails.
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
//
//= require action_cable
//= require_self
//= require_tree ./channels

(function() {
this.App || (this.App = {});

App.cable = ActionCable.createConsumer();

}).call(this);
Empty file.
15 changes: 15 additions & 0 deletions app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
* vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*/
4 changes: 4 additions & 0 deletions app/channels/application_cable/channel.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module ApplicationCable
class Channel < ActionCable::Channel::Base
end
end
4 changes: 4 additions & 0 deletions app/channels/application_cable/connection.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module ApplicationCable
class Connection < ActionCable::Connection::Base
end
end
Loading