From 2a972379d9a03a6dc9c6c6a2cb27dc18b8b97ea4 Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Fri, 1 Dec 2017 11:53:44 -0800 Subject: [PATCH 01/59] Initial commit. Rails boilerplate. --- Gemfile | 49 +++++ Gemfile.lock | 172 ++++++++++++++++++ Rakefile | 6 + app/assets/config/manifest.js | 3 + app/assets/images/.keep | 0 app/assets/javascripts/application.js | 14 ++ app/assets/javascripts/cable.js | 13 ++ app/assets/javascripts/channels/.keep | 0 app/assets/stylesheets/application.css | 15 ++ app/channels/application_cable/channel.rb | 4 + app/channels/application_cable/connection.rb | 4 + app/controllers/application_controller.rb | 3 + app/controllers/concerns/.keep | 0 app/helpers/application_helper.rb | 2 + app/jobs/application_job.rb | 2 + app/mailers/application_mailer.rb | 4 + app/models/application_record.rb | 3 + app/models/concerns/.keep | 0 app/views/layouts/application.html.erb | 14 ++ app/views/layouts/mailer.html.erb | 13 ++ app/views/layouts/mailer.text.erb | 1 + bin/bundle | 3 + bin/rails | 9 + bin/rake | 9 + bin/setup | 38 ++++ bin/spring | 17 ++ bin/update | 29 +++ bin/yarn | 11 ++ config.ru | 5 + config/application.rb | 31 ++++ config/boot.rb | 3 + config/cable.yml | 10 + config/database.yml | 85 +++++++++ config/environment.rb | 5 + config/environments/development.rb | 54 ++++++ config/environments/production.rb | 91 +++++++++ config/environments/test.rb | 42 +++++ .../application_controller_renderer.rb | 8 + config/initializers/assets.rb | 14 ++ config/initializers/backtrace_silencers.rb | 7 + config/initializers/cookies_serializer.rb | 5 + .../initializers/filter_parameter_logging.rb | 4 + config/initializers/inflections.rb | 16 ++ config/initializers/mime_types.rb | 4 + config/initializers/wrap_parameters.rb | 14 ++ config/locales/en.yml | 33 ++++ config/puma.rb | 56 ++++++ config/routes.rb | 3 + config/secrets.yml | 32 ++++ config/spring.rb | 6 + db/seeds.rb | 7 + lib/assets/.keep | 0 lib/tasks/.keep | 0 package.json | 5 + public/404.html | 67 +++++++ public/422.html | 67 +++++++ public/500.html | 66 +++++++ public/apple-touch-icon-precomposed.png | 0 public/apple-touch-icon.png | 0 public/favicon.ico | 0 public/robots.txt | 1 + vendor/.keep | 0 62 files changed, 1179 insertions(+) create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 Rakefile create mode 100644 app/assets/config/manifest.js create mode 100644 app/assets/images/.keep create mode 100644 app/assets/javascripts/application.js create mode 100644 app/assets/javascripts/cable.js create mode 100644 app/assets/javascripts/channels/.keep create mode 100644 app/assets/stylesheets/application.css create mode 100644 app/channels/application_cable/channel.rb create mode 100644 app/channels/application_cable/connection.rb create mode 100644 app/controllers/application_controller.rb create mode 100644 app/controllers/concerns/.keep create mode 100644 app/helpers/application_helper.rb create mode 100644 app/jobs/application_job.rb create mode 100644 app/mailers/application_mailer.rb create mode 100644 app/models/application_record.rb create mode 100644 app/models/concerns/.keep create mode 100644 app/views/layouts/application.html.erb create mode 100644 app/views/layouts/mailer.html.erb create mode 100644 app/views/layouts/mailer.text.erb create mode 100755 bin/bundle create mode 100755 bin/rails create mode 100755 bin/rake create mode 100755 bin/setup create mode 100755 bin/spring create mode 100755 bin/update create mode 100755 bin/yarn create mode 100644 config.ru create mode 100644 config/application.rb create mode 100644 config/boot.rb create mode 100644 config/cable.yml create mode 100644 config/database.yml create mode 100644 config/environment.rb create mode 100644 config/environments/development.rb create mode 100644 config/environments/production.rb create mode 100644 config/environments/test.rb create mode 100644 config/initializers/application_controller_renderer.rb create mode 100644 config/initializers/assets.rb create mode 100644 config/initializers/backtrace_silencers.rb create mode 100644 config/initializers/cookies_serializer.rb create mode 100644 config/initializers/filter_parameter_logging.rb create mode 100644 config/initializers/inflections.rb create mode 100644 config/initializers/mime_types.rb create mode 100644 config/initializers/wrap_parameters.rb create mode 100644 config/locales/en.yml create mode 100644 config/puma.rb create mode 100644 config/routes.rb create mode 100644 config/secrets.yml create mode 100644 config/spring.rb create mode 100644 db/seeds.rb create mode 100644 lib/assets/.keep create mode 100644 lib/tasks/.keep create mode 100644 package.json create mode 100644 public/404.html create mode 100644 public/422.html create mode 100644 public/500.html create mode 100644 public/apple-touch-icon-precomposed.png create mode 100644 public/apple-touch-icon.png create mode 100644 public/favicon.ico create mode 100644 public/robots.txt create mode 100644 vendor/.keep diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..b4dc8d2 --- /dev/null +++ b/Gemfile @@ -0,0 +1,49 @@ +source 'https://rubygems.org' + +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 + +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] +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] diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..6397335 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,172 @@ +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) + bindex (0.5.0) + builder (3.2.3) + byebug (9.1.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + erubi (1.7.0) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + 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) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + pg (0.21.0) + puma (3.11.0) + rack (2.0.3) + 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-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) + 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) + 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 + byebug + coffee-rails (~> 4.2) + jbuilder (~> 2.5) + listen (>= 3.0.5, < 3.2) + pg (~> 0.18) + puma (~> 3.7) + rails (~> 5.1.4) + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.16.0.pre.2 diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/Rakefile @@ -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 diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/app/assets/images/.keep b/app/assets/images/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js new file mode 100644 index 0000000..504211e --- /dev/null +++ b/app/assets/javascripts/application.js @@ -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 . diff --git a/app/assets/javascripts/cable.js b/app/assets/javascripts/cable.js new file mode 100644 index 0000000..739aa5f --- /dev/null +++ b/app/assets/javascripts/cable.js @@ -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); diff --git a/app/assets/javascripts/channels/.keep b/app/assets/javascripts/channels/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css new file mode 100644 index 0000000..d05ea0f --- /dev/null +++ b/app/assets/stylesheets/application.css @@ -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 + */ diff --git a/app/channels/application_cable/channel.rb b/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/app/channels/application_cable/connection.rb b/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb new file mode 100644 index 0000000..1c07694 --- /dev/null +++ b/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception +end diff --git a/app/controllers/concerns/.keep b/app/controllers/concerns/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb new file mode 100644 index 0000000..de6be79 --- /dev/null +++ b/app/helpers/application_helper.rb @@ -0,0 +1,2 @@ +module ApplicationHelper +end diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/app/models/application_record.rb b/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 0000000..a93ca96 --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + BootUp + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all' %> + <%= javascript_include_tag 'application' %> + + + + <%= yield %> + + diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/bin/bundle b/bin/bundle new file mode 100755 index 0000000..66e9889 --- /dev/null +++ b/bin/bundle @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) +load Gem.bin_path('bundler', 'bundle') diff --git a/bin/rails b/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/bin/rake b/bin/rake new file mode 100755 index 0000000..d87d5f5 --- /dev/null +++ b/bin/rake @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +require_relative '../config/boot' +require 'rake' +Rake.application.run diff --git a/bin/setup b/bin/setup new file mode 100755 index 0000000..78c4e86 --- /dev/null +++ b/bin/setup @@ -0,0 +1,38 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # Install JavaScript dependencies if using Yarn + # system('bin/yarn') + + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/bin/spring b/bin/spring new file mode 100755 index 0000000..fb2ec2e --- /dev/null +++ b/bin/spring @@ -0,0 +1,17 @@ +#!/usr/bin/env ruby + +# This file loads spring without using Bundler, in order to be fast. +# It gets overwritten when you run the `spring binstub` command. + +unless defined?(Spring) + require 'rubygems' + require 'bundler' + + lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) + spring = lockfile.specs.detect { |spec| spec.name == "spring" } + if spring + Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path + gem 'spring', spring.version + require 'spring/binstub' + end +end diff --git a/bin/update b/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/bin/yarn b/bin/yarn new file mode 100755 index 0000000..c2bacef --- /dev/null +++ b/bin/yarn @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby +VENDOR_PATH = File.expand_path('..', __dir__) +Dir.chdir(VENDOR_PATH) do + begin + exec "yarnpkg #{ARGV.join(" ")}" + rescue Errno::ENOENT + $stderr.puts "Yarn executable was not detected in the system." + $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" + exit 1 + end +end diff --git a/config.ru b/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/config/application.rb b/config/application.rb new file mode 100644 index 0000000..a91d888 --- /dev/null +++ b/config/application.rb @@ -0,0 +1,31 @@ +require_relative 'boot' + +require "rails" +# Pick the frameworks you want: +require "active_model/railtie" +require "active_job/railtie" +require "active_record/railtie" +require "action_controller/railtie" +require "action_mailer/railtie" +require "action_view/railtie" +require "action_cable/engine" +require "sprockets/railtie" +# require "rails/test_unit/railtie" + +# Require the gems listed in Gemfile, including any gems +# you've limited to :test, :development, or :production. +Bundler.require(*Rails.groups) + +module BootUp + class Application < Rails::Application + # Initialize configuration defaults for originally generated Rails version. + config.load_defaults 5.1 + + # Settings in config/environments/* take precedence over those specified here. + # Application configuration should go into files in config/initializers + # -- all .rb files in that directory are automatically loaded. + + # Don't generate system test files. + config.generators.system_tests = nil + end +end diff --git a/config/boot.rb b/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/config/cable.yml b/config/cable.yml new file mode 100644 index 0000000..564cdd9 --- /dev/null +++ b/config/cable.yml @@ -0,0 +1,10 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 + channel_prefix: BootUp_production diff --git a/config/database.yml b/config/database.yml new file mode 100644 index 0000000..3ce670f --- /dev/null +++ b/config/database.yml @@ -0,0 +1,85 @@ +# PostgreSQL. Versions 9.1 and up are supported. +# +# Install the pg driver: +# gem install pg +# On OS X with Homebrew: +# gem install pg -- --with-pg-config=/usr/local/bin/pg_config +# On OS X with MacPorts: +# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config +# On Windows: +# gem install pg +# Choose the win32 build. +# Install PostgreSQL and put its /bin directory on your path. +# +# Configure Using Gemfile +# gem 'pg' +# +default: &default + adapter: postgresql + encoding: unicode + # For details on connection pooling, see Rails configuration guide + # http://guides.rubyonrails.org/configuring.html#database-pooling + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + +development: + <<: *default + database: BootUp_development + + # The specified database role being used to connect to postgres. + # To create additional roles in postgres see `$ createuser --help`. + # When left blank, postgres will use the default role. This is + # the same name as the operating system user that initialized the database. + #username: BootUp + + # The password associated with the postgres role (username). + #password: + + # Connect on a TCP socket. Omitted by default since the client uses a + # domain socket that doesn't need configuration. Windows does not have + # domain sockets, so uncomment these lines. + #host: localhost + + # The TCP port the server listens on. Defaults to 5432. + # If your server runs on a different port number, change accordingly. + #port: 5432 + + # Schema search path. The server defaults to $user,public + #schema_search_path: myapp,sharedapp,public + + # Minimum log levels, in increasing order: + # debug5, debug4, debug3, debug2, debug1, + # log, notice, warning, error, fatal, and panic + # Defaults to warning. + #min_messages: notice + +# Warning: The database defined as "test" will be erased and +# re-generated from your development database when you run "rake". +# Do not set this db to the same as development or production. +test: + <<: *default + database: BootUp_test + +# As with config/secrets.yml, you never want to store sensitive information, +# like your database password, in your source code. If your source code is +# ever seen by anyone, they now have access to your database. +# +# Instead, provide the password as a unix environment variable when you boot +# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database +# for a full rundown on how to provide these environment variables in a +# production deployment. +# +# On Heroku and other platform providers, you may have a full connection URL +# available as an environment variable. For example: +# +# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase" +# +# You can use this database configuration with: +# +# production: +# url: <%= ENV['DATABASE_URL'] %> +# +production: + <<: *default + database: BootUp_production + username: BootUp + password: <%= ENV['BOOTUP_DATABASE_PASSWORD'] %> diff --git a/config/environment.rb b/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/config/environments/development.rb b/config/environments/development.rb new file mode 100644 index 0000000..5187e22 --- /dev/null +++ b/config/environments/development.rb @@ -0,0 +1,54 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # In the development environment your application's code is reloaded on + # every request. This slows down response time but is perfect for development + # since you don't have to restart the web server when you make code changes. + config.cache_classes = false + + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => "public, max-age=#{2.days.seconds.to_i}" + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = false + + # Print deprecation notices to the Rails logger. + config.active_support.deprecation = :log + + # Raise an error on page load if there are pending migrations. + config.active_record.migration_error = :page_load + + # Debug mode disables concatenation and preprocessing of assets. + # This option may cause significant delays in view rendering with a large + # number of complex assets. + config.assets.debug = true + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/config/environments/production.rb b/config/environments/production.rb new file mode 100644 index 0000000..6e489c6 --- /dev/null +++ b/config/environments/production.rb @@ -0,0 +1,91 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # Code is not reloaded between requests. + config.cache_classes = true + + # Eager load code on boot. This eager loads most of Rails and + # your application in memory, allowing both threaded web servers + # and those relying on copy on write to perform better. + # Rake tasks automatically ignore this option for performance. + config.eager_load = true + + # Full error reports are disabled and caching is turned on. + config.consider_all_requests_local = false + config.action_controller.perform_caching = true + + # Attempt to read encrypted secrets from `config/secrets.yml.enc`. + # Requires an encryption key in `ENV["RAILS_MASTER_KEY"]` or + # `config/secrets.yml.key`. + config.read_encrypted_secrets = true + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # Compress JavaScripts and CSS. + config.assets.js_compressor = :uglifier + # config.assets.css_compressor = :sass + + # Do not fallback to assets pipeline if a precompiled asset is missed. + config.assets.compile = false + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # Specifies the header that your server uses for sending files. + # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache + # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "BootUp_#{Rails.env}" + config.action_mailer.perform_caching = false + + # Ignore bad email addresses and do not raise email delivery errors. + # Set this to true and configure the email server for immediate delivery to raise delivery errors. + # config.action_mailer.raise_delivery_errors = false + + # Enable locale fallbacks for I18n (makes lookups for any locale fall back to + # the I18n.default_locale when a translation cannot be found). + config.i18n.fallbacks = true + + # Send deprecation notices to registered listeners. + config.active_support.deprecation = :notify + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/config/environments/test.rb b/config/environments/test.rb new file mode 100644 index 0000000..8e5cbde --- /dev/null +++ b/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. + + # The test environment is used exclusively to run your application's + # test suite. You never need to work with it otherwise. Remember that + # your test database is "scratch space" for the test suite and is wiped + # and recreated between test runs. Don't rely on the data there! + config.cache_classes = true + + # Do not eager load code on boot. This avoids loading your whole application + # just for the purpose of running a single test. If you are using a tool that + # preloads Rails for running tests, you may have to set it to true. + config.eager_load = false + + # Configure public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + 'Cache-Control' => "public, max-age=#{1.hour.seconds.to_i}" + } + + # Show full error reports and disable caching. + config.consider_all_requests_local = true + config.action_controller.perform_caching = false + + # Raise exceptions instead of rendering exception templates. + config.action_dispatch.show_exceptions = false + + # Disable request forgery protection in test environment. + config.action_controller.allow_forgery_protection = false + config.action_mailer.perform_caching = false + + # Tell Action Mailer not to deliver emails to the real world. + # The :test delivery method accumulates sent emails in the + # ActionMailer::Base.deliveries array. + config.action_mailer.delivery_method = :test + + # Print deprecation notices to the stderr. + config.active_support.deprecation = :stderr + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true +end diff --git a/config/initializers/application_controller_renderer.rb b/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb new file mode 100644 index 0000000..4b828e8 --- /dev/null +++ b/config/initializers/assets.rb @@ -0,0 +1,14 @@ +# Be sure to restart your server when you modify this file. + +# Version of your assets, change this if you want to expire all your assets. +Rails.application.config.assets.version = '1.0' + +# Add additional assets to the asset load path. +# Rails.application.config.assets.paths << Emoji.images_path +# Add Yarn node_modules folder to the asset load path. +Rails.application.config.assets.paths << Rails.root.join('node_modules') + +# Precompile additional assets. +# application.js, application.css, and all non-JS/CSS in the app/assets +# folder are already added. +# Rails.application.config.assets.precompile += %w( admin.js admin.css ) diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb new file mode 100644 index 0000000..59385cd --- /dev/null +++ b/config/initializers/backtrace_silencers.rb @@ -0,0 +1,7 @@ +# Be sure to restart your server when you modify this file. + +# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. +# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } + +# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. +# Rails.backtrace_cleaner.remove_silencers! diff --git a/config/initializers/cookies_serializer.rb b/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/config/initializers/filter_parameter_logging.rb b/config/initializers/filter_parameter_logging.rb new file mode 100644 index 0000000..4a994e1 --- /dev/null +++ b/config/initializers/filter_parameter_logging.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Configure sensitive parameters which will be filtered from the log file. +Rails.application.config.filter_parameters += [:password] diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb new file mode 100644 index 0000000..ac033bf --- /dev/null +++ b/config/initializers/inflections.rb @@ -0,0 +1,16 @@ +# Be sure to restart your server when you modify this file. + +# Add new inflection rules using the following format. Inflections +# are locale specific, and you may define rules for as many different +# locales as you wish. All of these examples are active by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.plural /^(ox)$/i, '\1en' +# inflect.singular /^(ox)en/i, '\1' +# inflect.irregular 'person', 'people' +# inflect.uncountable %w( fish sheep ) +# end + +# These inflection rules are supported but not enabled by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| +# inflect.acronym 'RESTful' +# end diff --git a/config/initializers/mime_types.rb b/config/initializers/mime_types.rb new file mode 100644 index 0000000..dc18996 --- /dev/null +++ b/config/initializers/mime_types.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Add new mime types for use in respond_to blocks: +# Mime::Type.register "text/richtext", :rtf diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# Be sure to restart your server when you modify this file. + +# This file contains settings for ActionController::ParamsWrapper which +# is enabled by default. + +# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. +ActiveSupport.on_load(:action_controller) do + wrap_parameters format: [:json] +end + +# To enable root element in JSON for ActiveRecord objects. +# ActiveSupport.on_load(:active_record) do +# self.include_root_in_json = true +# end diff --git a/config/locales/en.yml b/config/locales/en.yml new file mode 100644 index 0000000..decc5a8 --- /dev/null +++ b/config/locales/en.yml @@ -0,0 +1,33 @@ +# Files in the config/locales directory are used for internationalization +# and are automatically loaded by Rails. If you want to use locales other +# than English, add the necessary files in this directory. +# +# To use the locales, use `I18n.t`: +# +# I18n.t 'hello' +# +# In views, this is aliased to just `t`: +# +# <%= t('hello') %> +# +# To use a different locale, set it with `I18n.locale`: +# +# I18n.locale = :es +# +# This would use the information in config/locales/es.yml. +# +# The following keys must be escaped otherwise they will not be retrieved by +# the default I18n backend: +# +# true, false, on, off, yes, no +# +# Instead, surround them with single quotes. +# +# en: +# 'true': 'foo' +# +# To learn more, please read the Rails Internationalization guide +# available at http://guides.rubyonrails.org/i18n.html. + +en: + hello: "Hello world" diff --git a/config/puma.rb b/config/puma.rb new file mode 100644 index 0000000..1e19380 --- /dev/null +++ b/config/puma.rb @@ -0,0 +1,56 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers: a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum; this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 } +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests; default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# If you are preloading your application and using Active Record, it's +# recommended that you close any connections to the database before workers +# are forked to prevent connection leakage. +# +# before_fork do +# ActiveRecord::Base.connection_pool.disconnect! if defined?(ActiveRecord) +# end + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted, this block will be run. If you are using the `preload_app!` +# option, you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, as Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end +# + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/config/routes.rb b/config/routes.rb new file mode 100644 index 0000000..787824f --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,3 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html +end diff --git a/config/secrets.yml b/config/secrets.yml new file mode 100644 index 0000000..9c2556f --- /dev/null +++ b/config/secrets.yml @@ -0,0 +1,32 @@ +# Be sure to restart your server when you modify this file. + +# Your secret key is used for verifying the integrity of signed cookies. +# If you change this key, all old signed cookies will become invalid! + +# Make sure the secret is at least 30 characters and all random, +# no regular words or you'll be exposed to dictionary attacks. +# You can use `rails secret` to generate a secure secret key. + +# Make sure the secrets in this file are kept private +# if you're sharing your code publicly. + +# Shared secrets are available across all environments. + +# shared: +# api_key: a1B2c3D4e5F6 + +# Environmental secrets are only available for that specific environment. + +development: + secret_key_base: b4164b31dd2b5e1b198a63ee1adabc107dd54f45d6c436a7c213dfd937f3be06fb26f66be096ac0c1480c2915999c5559358f886d9a3a014e5ccd03edb11a379 + +test: + secret_key_base: 4f65b9472146c6ec60d58743596f50a2e3cb1b4dd5141d7e5f40fd22be6eae690c3a54f12a2e362bae2241b914a812ed18538cd32d6c5f7401bea1c40f877d6e + +# Do not keep production secrets in the unencrypted secrets file. +# Instead, either read values from the environment. +# Or, use `bin/rails secrets:setup` to configure encrypted secrets +# and move the `production:` environment over there. + +production: + secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> diff --git a/config/spring.rb b/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/db/seeds.rb b/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/lib/assets/.keep b/lib/assets/.keep new file mode 100644 index 0000000..e69de29 diff --git a/lib/tasks/.keep b/lib/tasks/.keep new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json new file mode 100644 index 0000000..f3a41ba --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "name": "BootUp", + "private": true, + "dependencies": {} +} diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/public/404.html @@ -0,0 +1,67 @@ + + + + The page you were looking for doesn't exist (404) + + + + + + +
+
+

The page you were looking for doesn't exist.

+

You may have mistyped the address or the page may have moved.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/422.html b/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/public/422.html @@ -0,0 +1,67 @@ + + + + The change you wanted was rejected (422) + + + + + + +
+
+

The change you wanted was rejected.

+

Maybe you tried to change something you didn't have access to.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/500.html b/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/public/500.html @@ -0,0 +1,66 @@ + + + + We're sorry, but something went wrong (500) + + + + + + +
+
+

We're sorry, but something went wrong.

+
+

If you are the application owner check the logs for more information.

+
+ + diff --git a/public/apple-touch-icon-precomposed.png b/public/apple-touch-icon-precomposed.png new file mode 100644 index 0000000..e69de29 diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 0000000..e69de29 diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..37b576a --- /dev/null +++ b/public/robots.txt @@ -0,0 +1 @@ +# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file diff --git a/vendor/.keep b/vendor/.keep new file mode 100644 index 0000000..e69de29 From d4496c5e6685c06a56620943a4bc0aa6e6339c0b Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Fri, 1 Dec 2017 11:56:02 -0800 Subject: [PATCH 02/59] Remove coffee-rails. --- Gemfile | 2 +- Gemfile.lock | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Gemfile b/Gemfile index b4dc8d2..70f4342 100644 --- a/Gemfile +++ b/Gemfile @@ -20,7 +20,7 @@ gem 'uglifier', '>= 1.3.0' # gem 'therubyracer', platforms: :ruby # Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.2' +# 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 diff --git a/Gemfile.lock b/Gemfile.lock index 6397335..e7e6ab0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -42,13 +42,6 @@ GEM bindex (0.5.0) builder (3.2.3) byebug (9.1.0) - coffee-rails (4.2.2) - coffee-script (>= 2.2.0) - railties (>= 4.0.0) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) concurrent-ruby (1.0.5) crass (1.0.3) erubi (1.7.0) @@ -155,7 +148,6 @@ PLATFORMS DEPENDENCIES byebug - coffee-rails (~> 4.2) jbuilder (~> 2.5) listen (>= 3.0.5, < 3.2) pg (~> 0.18) From f9397821c6f3628d3da2007c8811f52044709fc2 Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Fri, 1 Dec 2017 11:56:59 -0800 Subject: [PATCH 03/59] Set up rspec. --- Gemfile | 3 ++ Gemfile.lock | 27 +++++++++++++ spec/rails_helper.rb | 57 ++++++++++++++++++++++++++ spec/spec_helper.rb | 96 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 183 insertions(+) create mode 100644 spec/rails_helper.rb create mode 100644 spec/spec_helper.rb diff --git a/Gemfile b/Gemfile index 70f4342..878f8f3 100644 --- a/Gemfile +++ b/Gemfile @@ -34,6 +34,9 @@ gem 'jbuilder', '~> 2.5' 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 'faker' end group :development do diff --git a/Gemfile.lock b/Gemfile.lock index e7e6ab0..c028ed4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -44,8 +44,11 @@ GEM byebug (9.1.0) concurrent-ruby (1.0.5) crass (1.0.3) + diff-lcs (1.3) erubi (1.7.0) execjs (2.7.0) + faker (1.8.4) + i18n (~> 0.5) ffi (1.9.18) globalid (0.4.1) activesupport (>= 4.2.0) @@ -88,6 +91,10 @@ GEM 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) @@ -103,6 +110,23 @@ GEM 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) @@ -148,11 +172,14 @@ PLATFORMS DEPENDENCIES byebug + faker jbuilder (~> 2.5) listen (>= 3.0.5, < 3.2) pg (~> 0.18) puma (~> 3.7) rails (~> 5.1.4) + rails-controller-testing + rspec-rails sass-rails (~> 5.0) spring spring-watcher-listen (~> 2.0.0) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb new file mode 100644 index 0000000..bbe1ba5 --- /dev/null +++ b/spec/rails_helper.rb @@ -0,0 +1,57 @@ +# This file is copied to spec/ when you run 'rails generate rspec:install' +require 'spec_helper' +ENV['RAILS_ENV'] ||= 'test' +require File.expand_path('../../config/environment', __FILE__) +# Prevent database truncation if the environment is production +abort("The Rails environment is running in production mode!") if Rails.env.production? +require 'rspec/rails' +# Add additional requires below this line. Rails is not loaded until this point! + +# Requires supporting ruby files with custom matchers and macros, etc, in +# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are +# run as spec files by default. This means that files in spec/support that end +# in _spec.rb will both be required and run as specs, causing the specs to be +# run twice. It is recommended that you do not name files matching this glob to +# end with _spec.rb. You can configure this pattern with the --pattern +# option on the command line or in ~/.rspec, .rspec or `.rspec-local`. +# +# The following line is provided for convenience purposes. It has the downside +# of increasing the boot-up time by auto-requiring all files in the support +# directory. Alternatively, in the individual `*_spec.rb` files, manually +# require only the support files necessary. +# +# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f } + +# Checks for pending migrations and applies them before tests are run. +# If you are not using ActiveRecord, you can remove this line. +ActiveRecord::Migration.maintain_test_schema! + +RSpec.configure do |config| + # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures + config.fixture_path = "#{::Rails.root}/spec/fixtures" + + # If you're not using ActiveRecord, or you'd prefer not to run each of your + # examples within a transaction, remove the following line or assign false + # instead of true. + config.use_transactional_fixtures = true + + # RSpec Rails can automatically mix in different behaviours to your tests + # based on their file location, for example enabling you to call `get` and + # `post` in specs under `spec/controllers`. + # + # You can disable this behaviour by removing the line below, and instead + # explicitly tag your specs with their type, e.g.: + # + # RSpec.describe UsersController, :type => :controller do + # # ... + # end + # + # The different available types are documented in the features, such as in + # https://relishapp.com/rspec/rspec-rails/docs + config.infer_spec_type_from_file_location! + + # Filter lines from Rails gems in backtraces. + config.filter_rails_from_backtrace! + # arbitrary gems may also be filtered via: + # config.filter_gems_from_backtrace("gem name") +end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..ce33d66 --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,96 @@ +# This file was generated by the `rails generate rspec:install` command. Conventionally, all +# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. +# The generated `.rspec` file contains `--require spec_helper` which will cause +# this file to always be loaded, without a need to explicitly require it in any +# files. +# +# Given that it is always loaded, you are encouraged to keep this file as +# light-weight as possible. Requiring heavyweight dependencies from this file +# will add to the boot time of your test suite on EVERY test run, even for an +# individual file that may not need all of that loaded. Instead, consider making +# a separate helper file that requires the additional dependencies and performs +# the additional setup, and require it from the spec files that actually need +# it. +# +# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +RSpec.configure do |config| + # rspec-expectations config goes here. You can use an alternate + # assertion/expectation library such as wrong or the stdlib/minitest + # assertions if you prefer. + config.expect_with :rspec do |expectations| + # This option will default to `true` in RSpec 4. It makes the `description` + # and `failure_message` of custom matchers include text for helper methods + # defined using `chain`, e.g.: + # be_bigger_than(2).and_smaller_than(4).description + # # => "be bigger than 2 and smaller than 4" + # ...rather than: + # # => "be bigger than 2" + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + + # rspec-mocks config goes here. You can use an alternate test double + # library (such as bogus or mocha) by changing the `mock_with` option here. + config.mock_with :rspec do |mocks| + # Prevents you from mocking or stubbing a method that does not exist on + # a real object. This is generally recommended, and will default to + # `true` in RSpec 4. + mocks.verify_partial_doubles = true + end + + # This option will default to `:apply_to_host_groups` in RSpec 4 (and will + # have no way to turn it off -- the option exists only for backwards + # compatibility in RSpec 3). It causes shared context metadata to be + # inherited by the metadata hash of host groups and examples, rather than + # triggering implicit auto-inclusion in groups with matching metadata. + config.shared_context_metadata_behavior = :apply_to_host_groups + +# The settings below are suggested to provide a good initial experience +# with RSpec, but feel free to customize to your heart's content. +=begin + # This allows you to limit a spec run to individual examples or groups + # you care about by tagging them with `:focus` metadata. When nothing + # is tagged with `:focus`, all examples get run. RSpec also provides + # aliases for `it`, `describe`, and `context` that include `:focus` + # metadata: `fit`, `fdescribe` and `fcontext`, respectively. + config.filter_run_when_matching :focus + + # Allows RSpec to persist some state between runs in order to support + # the `--only-failures` and `--next-failure` CLI options. We recommend + # you configure your source control system to ignore this file. + config.example_status_persistence_file_path = "spec/examples.txt" + + # Limits the available syntax to the non-monkey patched syntax that is + # recommended. For more details, see: + # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/ + # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ + # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode + config.disable_monkey_patching! + + # Many RSpec users commonly either run the entire suite or an individual + # file, and it's useful to allow more verbose output when running an + # individual spec file. + if config.files_to_run.one? + # Use the documentation formatter for detailed output, + # unless a formatter has already been configured + # (e.g. via a command-line flag). + config.default_formatter = "doc" + end + + # Print the 10 slowest examples and example groups at the + # end of the spec run, to help surface which specs are running + # particularly slow. + config.profile_examples = 10 + + # Run specs in random order to surface order dependencies. If you find an + # order dependency and want to debug it, you can fix the order by providing + # the seed, which is printed after each run. + # --seed 1234 + config.order = :random + + # Seed global randomization in this process using the `--seed` CLI option. + # Setting this allows you to use `--seed` to deterministically reproduce + # test failures related to randomization by passing the same `--seed` value + # as the one that triggered the failure. + Kernel.srand config.seed +=end +end From 8f2c9283c6d1a343b73e285d45f7cdd17de53b17 Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Fri, 1 Dec 2017 14:33:40 -0800 Subject: [PATCH 04/59] Config for Rails API mode. --- app/controllers/application_controller.rb | 4 ++-- config/application.rb | 1 + config/environments/development.rb | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 1c07694..3f1a602 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,3 +1,3 @@ -class ApplicationController < ActionController::Base - protect_from_forgery with: :exception +class ApplicationController < ActionController::API + end diff --git a/config/application.rb b/config/application.rb index a91d888..2aebca5 100644 --- a/config/application.rb +++ b/config/application.rb @@ -18,6 +18,7 @@ module BootUp class Application < Rails::Application + config.api_only = true # Initialize configuration defaults for originally generated Rails version. config.load_defaults 5.1 diff --git a/config/environments/development.rb b/config/environments/development.rb index 5187e22..21cda66 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -6,6 +6,8 @@ # since you don't have to restart the web server when you make code changes. config.cache_classes = false + config.debug_exception_response_format = :api + # Do not eager load code on boot. config.eager_load = false From 34f7e2db884354b116289fada689eadc4a4e8802 Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Fri, 1 Dec 2017 16:17:30 -0800 Subject: [PATCH 05/59] Add ruby version to Gemfile and .ruby-version --- .ruby-version | 1 + Gemfile | 1 + Gemfile.lock | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .ruby-version diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..8e8299d --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +2.4.2 diff --git a/Gemfile b/Gemfile index 878f8f3..97f6325 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,5 @@ source 'https://rubygems.org' +ruby '2.4.2' git_source(:github) do |repo_name| repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") diff --git a/Gemfile.lock b/Gemfile.lock index c028ed4..d38563f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -187,5 +187,8 @@ DEPENDENCIES uglifier (>= 1.3.0) web-console (>= 3.3.0) +RUBY VERSION + ruby 2.4.2p198 + BUNDLED WITH - 1.16.0.pre.2 + 1.16.0 From d3549c40f2cf97978ea8b5f6dfdd2af385efa988 Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Sun, 3 Dec 2017 16:27:05 -0800 Subject: [PATCH 06/59] Added factory_bot_rails gem to Gemfile. --- Gemfile | 1 + Gemfile.lock | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 878f8f3..f8af8cd 100644 --- a/Gemfile +++ b/Gemfile @@ -36,6 +36,7 @@ group :development, :test do gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] gem 'rspec-rails' gem 'rails-controller-testing' + gem 'factory_bot_rails' gem 'faker' end diff --git a/Gemfile.lock b/Gemfile.lock index c028ed4..386856d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -47,6 +47,11 @@ GEM diff-lcs (1.3) 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) faker (1.8.4) i18n (~> 0.5) ffi (1.9.18) @@ -172,6 +177,7 @@ PLATFORMS DEPENDENCIES byebug + factory_bot_rails faker jbuilder (~> 2.5) listen (>= 3.0.5, < 3.2) @@ -188,4 +194,4 @@ DEPENDENCIES web-console (>= 3.3.0) BUNDLED WITH - 1.16.0.pre.2 + 1.16.0 From a6a8d3eb8fffa214014f2e6ac4c5ef5f57cdcf8d Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Sun, 3 Dec 2017 16:48:58 -0800 Subject: [PATCH 07/59] Added factory_bot_rails gem to Gemfile. --- Gemfile | 2 +- Gemfile.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index c7c931d..55007d8 100644 --- a/Gemfile +++ b/Gemfile @@ -37,7 +37,7 @@ group :development, :test do gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] gem 'rspec-rails' gem 'rails-controller-testing' - gem 'factory_bot_rails' + gem "factory_bot_rails", "~> 4.0" gem 'faker' end diff --git a/Gemfile.lock b/Gemfile.lock index 99d9e61..46f7ee1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -177,7 +177,7 @@ PLATFORMS DEPENDENCIES byebug - factory_bot_rails + factory_bot_rails (~> 4.0) faker jbuilder (~> 2.5) listen (>= 3.0.5, < 3.2) From 9e836c16e9fac08262fb2315546020374ddfb18c Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Sun, 3 Dec 2017 17:36:59 -0800 Subject: [PATCH 08/59] Generate initial schema models --- app/models/company.rb | 2 + app/models/interview.rb | 2 + app/models/skill.rb | 2 + app/models/user.rb | 2 + db/migrate/20171204005855_create_users.rb | 19 ++++ db/migrate/20171204005931_create_skills.rb | 9 ++ .../20171204010108_create_skills_users.rb | 8 ++ db/migrate/20171204010457_create_companies.rb | 13 +++ .../20171204010615_create_companies_skills.rb | 8 ++ .../20171204013338_create_interviews.rb | 28 ++++++ ...20171204013541_create_interviews_skills.rb | 8 ++ db/schema.rb | 98 +++++++++++++++++++ spec/factories/companies.rb | 9 ++ spec/factories/interviews.rb | 22 +++++ spec/factories/skills.rb | 5 + spec/factories/users.rb | 15 +++ spec/models/company_spec.rb | 5 + spec/models/interview_spec.rb | 5 + spec/models/skill_spec.rb | 5 + spec/models/user_spec.rb | 5 + 20 files changed, 270 insertions(+) create mode 100644 app/models/company.rb create mode 100644 app/models/interview.rb create mode 100644 app/models/skill.rb create mode 100644 app/models/user.rb create mode 100644 db/migrate/20171204005855_create_users.rb create mode 100644 db/migrate/20171204005931_create_skills.rb create mode 100644 db/migrate/20171204010108_create_skills_users.rb create mode 100644 db/migrate/20171204010457_create_companies.rb create mode 100644 db/migrate/20171204010615_create_companies_skills.rb create mode 100644 db/migrate/20171204013338_create_interviews.rb create mode 100644 db/migrate/20171204013541_create_interviews_skills.rb create mode 100644 db/schema.rb create mode 100644 spec/factories/companies.rb create mode 100644 spec/factories/interviews.rb create mode 100644 spec/factories/skills.rb create mode 100644 spec/factories/users.rb create mode 100644 spec/models/company_spec.rb create mode 100644 spec/models/interview_spec.rb create mode 100644 spec/models/skill_spec.rb create mode 100644 spec/models/user_spec.rb diff --git a/app/models/company.rb b/app/models/company.rb new file mode 100644 index 0000000..a149860 --- /dev/null +++ b/app/models/company.rb @@ -0,0 +1,2 @@ +class Company < ApplicationRecord +end diff --git a/app/models/interview.rb b/app/models/interview.rb new file mode 100644 index 0000000..808c58b --- /dev/null +++ b/app/models/interview.rb @@ -0,0 +1,2 @@ +class Interview < ApplicationRecord +end diff --git a/app/models/skill.rb b/app/models/skill.rb new file mode 100644 index 0000000..260648a --- /dev/null +++ b/app/models/skill.rb @@ -0,0 +1,2 @@ +class Skill < ApplicationRecord +end diff --git a/app/models/user.rb b/app/models/user.rb new file mode 100644 index 0000000..379658a --- /dev/null +++ b/app/models/user.rb @@ -0,0 +1,2 @@ +class User < ApplicationRecord +end diff --git a/db/migrate/20171204005855_create_users.rb b/db/migrate/20171204005855_create_users.rb new file mode 100644 index 0000000..b988837 --- /dev/null +++ b/db/migrate/20171204005855_create_users.rb @@ -0,0 +1,19 @@ +class CreateUsers < ActiveRecord::Migration[5.1] + def change + create_table :users do |t| + t.string :name + t.integer :year + t.string :cohort + t.string :location + t.string :email + t.string :linkedin_url + t.string :github_url + t.string :facebook_url + t.string :current_company + t.string :current_position + t.string :photo_url + + t.timestamps + end + end +end diff --git a/db/migrate/20171204005931_create_skills.rb b/db/migrate/20171204005931_create_skills.rb new file mode 100644 index 0000000..a2f0b00 --- /dev/null +++ b/db/migrate/20171204005931_create_skills.rb @@ -0,0 +1,9 @@ +class CreateSkills < ActiveRecord::Migration[5.1] + def change + create_table :skills do |t| + t.string :name + + t.timestamps + end + end +end diff --git a/db/migrate/20171204010108_create_skills_users.rb b/db/migrate/20171204010108_create_skills_users.rb new file mode 100644 index 0000000..7afc20a --- /dev/null +++ b/db/migrate/20171204010108_create_skills_users.rb @@ -0,0 +1,8 @@ +class CreateSkillsUsers < ActiveRecord::Migration[5.1] + def change + create_table :skills_users do |t| + t.references :user + t.references :skill + end + end +end diff --git a/db/migrate/20171204010457_create_companies.rb b/db/migrate/20171204010457_create_companies.rb new file mode 100644 index 0000000..f2f5dc6 --- /dev/null +++ b/db/migrate/20171204010457_create_companies.rb @@ -0,0 +1,13 @@ +class CreateCompanies < ActiveRecord::Migration[5.1] + def change + create_table :companies do |t| + t.string :name + t.string :location + t.string :website + t.string :tech_field + t.boolean :has_apprenticeship? + + t.timestamps + end + end +end diff --git a/db/migrate/20171204010615_create_companies_skills.rb b/db/migrate/20171204010615_create_companies_skills.rb new file mode 100644 index 0000000..917dd6a --- /dev/null +++ b/db/migrate/20171204010615_create_companies_skills.rb @@ -0,0 +1,8 @@ +class CreateCompaniesSkills < ActiveRecord::Migration[5.1] + def change + create_table :companies_skills do |t| + t.references :company + t.references :skill + end + end +end diff --git a/db/migrate/20171204013338_create_interviews.rb b/db/migrate/20171204013338_create_interviews.rb new file mode 100644 index 0000000..04aa556 --- /dev/null +++ b/db/migrate/20171204013338_create_interviews.rb @@ -0,0 +1,28 @@ +class CreateInterviews < ActiveRecord::Migration[5.1] + def change + create_table :interviews do |t| + t.string :job_title + t.boolean :referred? + t.boolean :received_offer? + t.text :notes + t.integer :difficulty_rating + t.integer :experience_rating + t.boolean :accepted_offer? + t.boolean :phone_screen? + t.text :phone_screen_details + t.boolean :tech_screen? + t.text :tech_screen_details + t.boolean :take_home_challenge? + t.text :take_home_challenge_details + t.boolean :onsite? + t.text :onsite_details + t.boolean :whiteboarding? + t.text :whiteboarding_details + t.text :negotiation_details + t.references :user + t.references :company + + t.timestamps + end + end +end diff --git a/db/migrate/20171204013541_create_interviews_skills.rb b/db/migrate/20171204013541_create_interviews_skills.rb new file mode 100644 index 0000000..c18636e --- /dev/null +++ b/db/migrate/20171204013541_create_interviews_skills.rb @@ -0,0 +1,8 @@ +class CreateInterviewsSkills < ActiveRecord::Migration[5.1] + def change + create_table :interviews_skills do |t| + t.references :skill + t.references :interview + end + end +end diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 0000000..9196141 --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,98 @@ +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema.define(version: 20171204013541) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "companies", force: :cascade do |t| + t.string "name" + t.string "location" + t.string "website" + t.string "tech_field" + t.boolean "has_apprenticeship?" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "companies_skills", force: :cascade do |t| + t.bigint "company_id" + t.bigint "skill_id" + t.index ["company_id"], name: "index_companies_skills_on_company_id" + t.index ["skill_id"], name: "index_companies_skills_on_skill_id" + end + + create_table "interviews", force: :cascade do |t| + t.string "job_title" + t.boolean "referred?" + t.boolean "received_offer?" + t.text "notes" + t.integer "difficulty_rating" + t.integer "experience_rating" + t.boolean "accepted_offer?" + t.boolean "phone_screen?" + t.text "phone_screen_details" + t.boolean "tech_screen?" + t.text "tech_screen_details" + t.boolean "take_home_challenge?" + t.text "take_home_challenge_details" + t.boolean "onsite?" + t.text "onsite_details" + t.boolean "whiteboarding?" + t.text "whiteboarding_details" + t.text "negotiation_details" + t.bigint "user_id" + t.bigint "company_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["company_id"], name: "index_interviews_on_company_id" + t.index ["user_id"], name: "index_interviews_on_user_id" + end + + create_table "interviews_skills", force: :cascade do |t| + t.bigint "skill_id" + t.bigint "interview_id" + t.index ["interview_id"], name: "index_interviews_skills_on_interview_id" + t.index ["skill_id"], name: "index_interviews_skills_on_skill_id" + end + + create_table "skills", force: :cascade do |t| + t.string "name" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "skills_users", force: :cascade do |t| + t.bigint "user_id" + t.bigint "skill_id" + t.index ["skill_id"], name: "index_skills_users_on_skill_id" + t.index ["user_id"], name: "index_skills_users_on_user_id" + end + + create_table "users", force: :cascade do |t| + t.string "name" + t.integer "year" + t.string "cohort" + t.string "location" + t.string "email" + t.string "linkedin_url" + t.string "github_url" + t.string "facebook_url" + t.string "current_company" + t.string "current_position" + t.string "photo_url" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + +end diff --git a/spec/factories/companies.rb b/spec/factories/companies.rb new file mode 100644 index 0000000..ca43a57 --- /dev/null +++ b/spec/factories/companies.rb @@ -0,0 +1,9 @@ +FactoryBot.define do + factory :company do + name "MyString" + location "MyString" + website "MyString" + tech_field "MyString" + has_apprenticeship? false + end +end diff --git a/spec/factories/interviews.rb b/spec/factories/interviews.rb new file mode 100644 index 0000000..c3b59c6 --- /dev/null +++ b/spec/factories/interviews.rb @@ -0,0 +1,22 @@ +FactoryBot.define do + factory :interview do + job_title "MyString" + referred? false + received_offer? false + notes "MyText" + difficulty_rating 1 + experience_rating 1 + accepted_offer? false + phone_screen? false + phone_screen_details "MyText" + tech_screen? false + tech_screen_details "MyText" + take_home_challenge? false + take_home_challenge_details "MyText" + onsite? false + onsite_details "MyText" + whiteboarding? false + whiteboarding_details "MyText" + negotiation_details "MyText" + end +end diff --git a/spec/factories/skills.rb b/spec/factories/skills.rb new file mode 100644 index 0000000..8ec94e3 --- /dev/null +++ b/spec/factories/skills.rb @@ -0,0 +1,5 @@ +FactoryBot.define do + factory :skill do + name "MyString" + end +end diff --git a/spec/factories/users.rb b/spec/factories/users.rb new file mode 100644 index 0000000..d6db073 --- /dev/null +++ b/spec/factories/users.rb @@ -0,0 +1,15 @@ +FactoryBot.define do + factory :user do + name "MyString" + year 1 + cohort "MyString" + location "MyString" + email "MyString" + linkedin_url "MyString" + github_url "MyString" + facebook_url "MyString" + current_company "MyString" + current_position "MyString" + photo_url "MyString" + end +end diff --git a/spec/models/company_spec.rb b/spec/models/company_spec.rb new file mode 100644 index 0000000..23c199c --- /dev/null +++ b/spec/models/company_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe Company, type: :model do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/spec/models/interview_spec.rb b/spec/models/interview_spec.rb new file mode 100644 index 0000000..36bebff --- /dev/null +++ b/spec/models/interview_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe Interview, type: :model do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/spec/models/skill_spec.rb b/spec/models/skill_spec.rb new file mode 100644 index 0000000..8034011 --- /dev/null +++ b/spec/models/skill_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe Skill, type: :model do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb new file mode 100644 index 0000000..47a31bb --- /dev/null +++ b/spec/models/user_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe User, type: :model do + pending "add some examples to (or delete) #{__FILE__}" +end From 075cf0a09933d4fba3f941fe060f8a8105423412 Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Sun, 3 Dec 2017 17:49:08 -0800 Subject: [PATCH 09/59] Specify faker gem version --- Gemfile | 2 +- Gemfile.lock | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 55007d8..07aea48 100644 --- a/Gemfile +++ b/Gemfile @@ -38,7 +38,7 @@ group :development, :test do gem 'rspec-rails' gem 'rails-controller-testing' gem "factory_bot_rails", "~> 4.0" - gem 'faker' + gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master' end group :development do diff --git a/Gemfile.lock b/Gemfile.lock index 46f7ee1..0873308 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,11 @@ +GIT + remote: https://github.com/stympy/faker.git + revision: c972b0d791dd99d45058ba4fe625dbd27bb3fbe0 + branch: master + specs: + faker (1.8.4) + i18n (~> 0.5) + GEM remote: https://rubygems.org/ specs: @@ -52,8 +60,6 @@ GEM factory_bot_rails (4.8.2) factory_bot (~> 4.8.2) railties (>= 3.0.0) - faker (1.8.4) - i18n (~> 0.5) ffi (1.9.18) globalid (0.4.1) activesupport (>= 4.2.0) @@ -178,7 +184,7 @@ PLATFORMS DEPENDENCIES byebug factory_bot_rails (~> 4.0) - faker + faker! jbuilder (~> 2.5) listen (>= 3.0.5, < 3.2) pg (~> 0.18) From 1391e4288b2bbf088e5f7cf85d20e7c445363eb5 Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Sun, 3 Dec 2017 19:36:38 -0800 Subject: [PATCH 10/59] Change interview user association to be interviewee --- app/models/company.rb | 3 +++ app/models/interview.rb | 3 +++ app/models/skill.rb | 3 +++ app/models/user.rb | 2 ++ 4 files changed, 11 insertions(+) diff --git a/app/models/company.rb b/app/models/company.rb index a149860..65f96a6 100644 --- a/app/models/company.rb +++ b/app/models/company.rb @@ -1,2 +1,5 @@ class Company < ApplicationRecord + has_many :interviews + has_many :interviewees, through: :interviews, source: :user + has_and_belongs_to_many :skills end diff --git a/app/models/interview.rb b/app/models/interview.rb index 808c58b..8169667 100644 --- a/app/models/interview.rb +++ b/app/models/interview.rb @@ -1,2 +1,5 @@ class Interview < ApplicationRecord + has_and_belongs_to_many :skills + belongs_to :company + belongs_to :interviewee, foreign_key: 'user_id', class_name: 'User' end diff --git a/app/models/skill.rb b/app/models/skill.rb index 260648a..4355dec 100644 --- a/app/models/skill.rb +++ b/app/models/skill.rb @@ -1,2 +1,5 @@ class Skill < ApplicationRecord + has_and_belongs_to_many :companies + has_and_belongs_to_many :users + has_and_belongs_to_many :interviews end diff --git a/app/models/user.rb b/app/models/user.rb index 379658a..a84c445 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,2 +1,4 @@ class User < ApplicationRecord + has_and_belongs_to_many :skills + has_many :interviews end From 70497de972e27bcd4939c4ed90a81320398c561d Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Sun, 3 Dec 2017 19:37:47 -0800 Subject: [PATCH 11/59] Add api scope to routes --- config/routes.rb | 4 +++- public/default_profile.png | Bin 0 -> 2391 bytes spec/factories/companies.rb | 12 +++++++----- spec/factories/interviews.rb | 30 +++++++++++++++--------------- spec/factories/skills.rb | 2 +- spec/factories/users.rb | 26 +++++++++++++++----------- 6 files changed, 41 insertions(+), 33 deletions(-) create mode 100644 public/default_profile.png diff --git a/config/routes.rb b/config/routes.rb index 787824f..1d14ed0 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,5 @@ Rails.application.routes.draw do - # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + scope :api do + + end end diff --git a/public/default_profile.png b/public/default_profile.png new file mode 100644 index 0000000000000000000000000000000000000000..8a595fec500e2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(6=H#KwKn&&;zhz>>dM<_>O@Tm!|IlU z)wIjblyKel%w74y7)Dg-=6=-)9pQIO(wAvEA^eU>y4f5O9ijM+NjkOMo(V%~UtzE3 zC(~!bwYwD$#hNip*7g{q*HcC1$vVvAFHu@+2*uY(x0imU{sXdTjy+!S2(bVF002ov JPDHLkV1oKkjV}NI literal 0 HcmV?d00001 diff --git a/spec/factories/companies.rb b/spec/factories/companies.rb index ca43a57..efcfd75 100644 --- a/spec/factories/companies.rb +++ b/spec/factories/companies.rb @@ -1,9 +1,11 @@ FactoryBot.define do factory :company do - name "MyString" - location "MyString" - website "MyString" - tech_field "MyString" - has_apprenticeship? false + name { Faker::Company.name } + location { "#{Faker::Address.city}, #{Faker::Address.state}" } + website { Faker::Internet.url } + tech_field { Faker::Company.catch_phrase } + has_apprenticeship? { [true, false].sample } + association :interview + association :interviewees, factory: :user end end diff --git a/spec/factories/interviews.rb b/spec/factories/interviews.rb index c3b59c6..aa64580 100644 --- a/spec/factories/interviews.rb +++ b/spec/factories/interviews.rb @@ -1,22 +1,22 @@ FactoryBot.define do factory :interview do job_title "MyString" - referred? false + referred? { [true, false].sample } received_offer? false notes "MyText" - difficulty_rating 1 - experience_rating 1 - accepted_offer? false - phone_screen? false - phone_screen_details "MyText" - tech_screen? false - tech_screen_details "MyText" - take_home_challenge? false - take_home_challenge_details "MyText" - onsite? false - onsite_details "MyText" - whiteboarding? false - whiteboarding_details "MyText" - negotiation_details "MyText" + difficulty_rating { (1..3).to_a.sample } + experience_rating { (1..3).to_a.sample } + accepted_offer? { [true, false].sample } + phone_screen? { [true, false].sample } + phone_screen_details { Faker::Hacker.say_something_smart } + tech_screen? { [true, false].sample } + tech_screen_details { Faker::Hacker.say_something_smart } + take_home_challenge? { [true, false].sample } + take_home_challenge_details { Faker::Hacker.say_something_smart } + onsite? { [true, false].sample } + onsite_details { Faker::Hacker.say_something_smart } + whiteboarding? { [true, false].sample } + whiteboarding_details { Faker::Hacker.say_something_smart } + negotiation_details { Faker::Hacker.say_something_smart } end end diff --git a/spec/factories/skills.rb b/spec/factories/skills.rb index 8ec94e3..c83ff44 100644 --- a/spec/factories/skills.rb +++ b/spec/factories/skills.rb @@ -1,5 +1,5 @@ FactoryBot.define do factory :skill do - name "MyString" + name { Faker::Company.catch_phrase } end end diff --git a/spec/factories/users.rb b/spec/factories/users.rb index d6db073..f97444e 100644 --- a/spec/factories/users.rb +++ b/spec/factories/users.rb @@ -1,15 +1,19 @@ +require 'faker' + +COHORTS = ['Bumblebees', 'Fiddler Crabs', 'Rock Doves', 'Fiery Skippers', 'Golden Bears', 'Red Pandas', 'Nighthawks', 'Pocket Gophers', 'Sea Lions', 'Fireflies', 'Foxes', 'Wild Pigs', 'Chorus Frogs', 'Squirrels', 'Otters', 'Jackrabbits', 'Bobolinks', 'Coyotes', 'Chipmunks', 'Salamanders', 'Wolves', 'Copperheads', 'Dragonflies', 'Purple Martins', 'Mud Turtles', 'Cicadas', 'Grasshoppers', 'Island Foxes', 'Grey Racoons', 'Desert Rabbits', 'Brown Bats', 'Largemouth Basses', 'Pocket Mice', 'Mule Deer', 'Tiger Swallowtails', 'Gopher Snakes', 'Fence Lizards', 'Red Admirals', 'Banana Slugs', 'Fox Squirrels'] + FactoryBot.define do factory :user do - name "MyString" - year 1 - cohort "MyString" - location "MyString" - email "MyString" - linkedin_url "MyString" - github_url "MyString" - facebook_url "MyString" - current_company "MyString" - current_position "MyString" - photo_url "MyString" + name { Faker::Name.name } + year { (2012..2017).to_a.sample } + cohort { COHORTS.sample } + location { "#{Faker::Address.city}, #{Faker::Address.state}" } + email { Faker::Internet.email } + linkedin_url { Faker::Internet.url('linkedin.com') } + github_url { Faker::Internet.url('github.com') } + facebook_url { Faker::Internet.url('facebook.com') } + current_company { Faker::Company.name } + current_position { Faker::Company.profession } + photo_url { Faker::Fillmurray.image } end end From 266160b7a9921ef27aa34465e9cf17df69a8e29a Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Mon, 4 Dec 2017 07:18:17 -0800 Subject: [PATCH 12/59] Update associations --- app/models/company.rb | 2 +- app/models/user.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/company.rb b/app/models/company.rb index 65f96a6..97eaa9c 100644 --- a/app/models/company.rb +++ b/app/models/company.rb @@ -1,5 +1,5 @@ class Company < ApplicationRecord has_many :interviews - has_many :interviewees, through: :interviews, source: :user + has_many :interviewees, through: :interviews has_and_belongs_to_many :skills end diff --git a/app/models/user.rb b/app/models/user.rb index a84c445..02eb6d4 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,4 +1,5 @@ class User < ApplicationRecord has_and_belongs_to_many :skills - has_many :interviews + has_many :interviews, dependent: :destroy + has_many :companies_applied_to, through: :interviews, source: :company end From cea6feb3e08613ec8529f4a7696b234f95c90302 Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Mon, 4 Dec 2017 07:23:58 -0800 Subject: [PATCH 13/59] Add factories and seed file for initial models --- db/seeds.rb | 10 ++++++++++ spec/factories/companies.rb | 8 ++++++-- spec/factories/interviews.rb | 9 +++++++++ spec/factories/users.rb | 6 ++++++ 4 files changed, 31 insertions(+), 2 deletions(-) diff --git a/db/seeds.rb b/db/seeds.rb index 1beea2a..2feabfd 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -5,3 +5,13 @@ # # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) # Character.create(name: 'Luke', movie: movies.first) + +Skill.destroy_all +User.destroy_all +Company.destroy_all +Interview.destroy_all + +FactoryBot.create_list(:skill, 30) +FactoryBot.create_list(:user, 5) +FactoryBot.create_list(:company, 10) +FactoryBot.create_list(:interview, 50) diff --git a/spec/factories/companies.rb b/spec/factories/companies.rb index efcfd75..2fe06fb 100644 --- a/spec/factories/companies.rb +++ b/spec/factories/companies.rb @@ -1,11 +1,15 @@ FactoryBot.define do factory :company do + transient { skill_count 4 } + name { Faker::Company.name } location { "#{Faker::Address.city}, #{Faker::Address.state}" } website { Faker::Internet.url } tech_field { Faker::Company.catch_phrase } has_apprenticeship? { [true, false].sample } - association :interview - association :interviewees, factory: :user + skills do + FactoryBot.create(:skill) until Skill.all.length > skill_count + Skill.all.sample(skill_count) + end end end diff --git a/spec/factories/interviews.rb b/spec/factories/interviews.rb index aa64580..99583ed 100644 --- a/spec/factories/interviews.rb +++ b/spec/factories/interviews.rb @@ -1,5 +1,7 @@ FactoryBot.define do factory :interview do + transient { skill_count 4 } + job_title "MyString" referred? { [true, false].sample } received_offer? false @@ -18,5 +20,12 @@ whiteboarding? { [true, false].sample } whiteboarding_details { Faker::Hacker.say_something_smart } negotiation_details { Faker::Hacker.say_something_smart } + + interviewee { User.all.sample || FactoryBot.create(:user) } + company { Company.all.sample || FactoryBot.create(:company) } + skills do + FactoryBot.create(:skill) until Skill.all.length > skill_count + Skill.all.sample(skill_count) + end end end diff --git a/spec/factories/users.rb b/spec/factories/users.rb index f97444e..385dbfe 100644 --- a/spec/factories/users.rb +++ b/spec/factories/users.rb @@ -4,6 +4,8 @@ FactoryBot.define do factory :user do + transient { skill_count 4 } + name { Faker::Name.name } year { (2012..2017).to_a.sample } cohort { COHORTS.sample } @@ -15,5 +17,9 @@ current_company { Faker::Company.name } current_position { Faker::Company.profession } photo_url { Faker::Fillmurray.image } + skills do + FactoryBot.create(:skill) until Skill.all.length > skill_count + Skill.all.sample(skill_count) + end end end From da6a7eb8073ceab49599af5c3d473140a8108de4 Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Mon, 4 Dec 2017 09:11:18 -0800 Subject: [PATCH 14/59] Add dotenv-rails to Gemfile --- Gemfile | 1 + Gemfile.lock | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Gemfile b/Gemfile index 07aea48..5ac278b 100644 --- a/Gemfile +++ b/Gemfile @@ -39,6 +39,7 @@ group :development, :test do gem 'rails-controller-testing' gem "factory_bot_rails", "~> 4.0" gem 'faker', :git => 'https://github.com/stympy/faker.git', :branch => 'master' + gem 'dotenv-rails' end group :development do diff --git a/Gemfile.lock b/Gemfile.lock index 0873308..177607f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -53,6 +53,10 @@ GEM 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) @@ -183,6 +187,7 @@ PLATFORMS DEPENDENCIES byebug + dotenv-rails factory_bot_rails (~> 4.0) faker! jbuilder (~> 2.5) From 2c8ce75b256e309797fb98995627d9bb9349a0db Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Mon, 4 Dec 2017 09:12:25 -0800 Subject: [PATCH 15/59] Add json_with_association methods to models --- app/models/company.rb | 4 ++++ app/models/interview.rb | 12 ++++++++++++ app/models/skill.rb | 4 ++++ app/models/user.rb | 12 ++++++++++++ 4 files changed, 32 insertions(+) diff --git a/app/models/company.rb b/app/models/company.rb index 97eaa9c..b803244 100644 --- a/app/models/company.rb +++ b/app/models/company.rb @@ -2,4 +2,8 @@ class Company < ApplicationRecord has_many :interviews has_many :interviewees, through: :interviews has_and_belongs_to_many :skills + + def serializable_hash(options = nil) + super({except: [:created_at, :updated_at]}.merge(options || {})) + end end diff --git a/app/models/interview.rb b/app/models/interview.rb index 8169667..f4418e3 100644 --- a/app/models/interview.rb +++ b/app/models/interview.rb @@ -2,4 +2,16 @@ class Interview < ApplicationRecord has_and_belongs_to_many :skills belongs_to :company belongs_to :interviewee, foreign_key: 'user_id', class_name: 'User' + + def json_with_associations + self.as_json(include: { + skills: {only: [:id, :name]}, + interviewee: {}, + company: {} + }) + end + + def serializable_hash(options = nil) + super({except: [:created_at, :updated_at]}.merge(options || {})) + end end diff --git a/app/models/skill.rb b/app/models/skill.rb index 4355dec..0b09bc0 100644 --- a/app/models/skill.rb +++ b/app/models/skill.rb @@ -2,4 +2,8 @@ class Skill < ApplicationRecord has_and_belongs_to_many :companies has_and_belongs_to_many :users has_and_belongs_to_many :interviews + + def serializable_hash(options = nil) + super({except: [:created_at, :updated_at]}.merge(options || {})) + end end diff --git a/app/models/user.rb b/app/models/user.rb index 02eb6d4..9a6ac28 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -2,4 +2,16 @@ class User < ApplicationRecord has_and_belongs_to_many :skills has_many :interviews, dependent: :destroy has_many :companies_applied_to, through: :interviews, source: :company + + def json_with_associations + self.as_json(include: { + skills: {only: [:id, :name]}, + interviews: {include: :company}, + companies_applied_to: {} + }) + end + + def serializable_hash(options = nil) + super({except: [:created_at, :updated_at]}.merge(options || {})) + end end From 020319665fed95f4397a7e16fae196b6d78b16ce Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Mon, 4 Dec 2017 09:12:55 -0800 Subject: [PATCH 16/59] Add controllers and routes for models --- app/controllers/companies_controller.rb | 40 +++++++++++++++++ app/controllers/interviews_controller.rb | 44 +++++++++++++++++++ app/controllers/skills_controller.rb | 26 +++++++++++ app/controllers/users_controller.rb | 44 +++++++++++++++++++ config/routes.rb | 5 ++- spec/controllers/companies_controller_spec.rb | 40 +++++++++++++++++ .../controllers/interviews_controller_spec.rb | 40 +++++++++++++++++ spec/controllers/skills_controller_spec.rb | 26 +++++++++++ spec/controllers/users_controller_spec.rb | 40 +++++++++++++++++ 9 files changed, 304 insertions(+), 1 deletion(-) create mode 100644 app/controllers/companies_controller.rb create mode 100644 app/controllers/interviews_controller.rb create mode 100644 app/controllers/skills_controller.rb create mode 100644 app/controllers/users_controller.rb create mode 100644 spec/controllers/companies_controller_spec.rb create mode 100644 spec/controllers/interviews_controller_spec.rb create mode 100644 spec/controllers/skills_controller_spec.rb create mode 100644 spec/controllers/users_controller_spec.rb diff --git a/app/controllers/companies_controller.rb b/app/controllers/companies_controller.rb new file mode 100644 index 0000000..2c53994 --- /dev/null +++ b/app/controllers/companies_controller.rb @@ -0,0 +1,40 @@ +class CompaniesController < ApplicationController + def index + companies = Company.all + render json: companies + end + + def create + company = Company.new(company_params) + if company.save + render json: company + else + render json: {errors: company.errors.full_messages}, statue: 422 + end + end + + def show + company = Company.find_by(params[:id]) + render json: company + end + + def update + company = Company.find_by(params[:id]) + if company.update(company_params) + render json: company + else + render json: {errors: company.errors.full_messages}, statue: 422 + end + end + + def destroy + company = Company.find_by(id: params[:id]) + company.destroy + render json: {message: "Company destroyed"} + end + + private + def company_params + params.require(:company).permit(:name, :location, :website, :tech_field, :has_apprenticeship?) + end +end diff --git a/app/controllers/interviews_controller.rb b/app/controllers/interviews_controller.rb new file mode 100644 index 0000000..8c1fae7 --- /dev/null +++ b/app/controllers/interviews_controller.rb @@ -0,0 +1,44 @@ +class InterviewsController < ApplicationController + def index + interviews = Interview.includes(:skills, :interviewee, :company) + render json: interviews.map(&:json_with_associations) + end + + def show + interview = Interview.find_by(id: params[:id]) + if interview + render json: interview.json_with_associations + else + render json: [] + end + end + + def create + Interview.new(interview_params) + if interview.save + render json: interview.json_with_associations + else + render json: {errors: interview.errors.full_messages}, status: 422 + end + end + + def update + interview = Interview.find_by(id: params[:id]) + if interview.update(interview_params) + render json: interview.json_with_associations + else + render json: {errors: interview.errors.full_messages}, status: 422 + end + end + + def destroy + interview = Interview.find_by(id: params[:id]) + interview.destroy + render json: {message: "Interview destroyed"} + end + + private + def interview_params + params.require(:interview).permit(:job_title, :referred?, :received_offer?, :notes, :difficulty_rating, :experience_rating, :accepted_offer?, :phone_screen?, :phone_screen_details, :tech_screen?, :tech_screen_details, :take_home_challenge?, :take_home_challenge_details, :onsite?, :onsite_details, :whiteboarding?, :whiteboarding_details, :negotiation_details, :user_id, :company_id) + end +end diff --git a/app/controllers/skills_controller.rb b/app/controllers/skills_controller.rb new file mode 100644 index 0000000..9ccb6aa --- /dev/null +++ b/app/controllers/skills_controller.rb @@ -0,0 +1,26 @@ +class SkillsController < ApplicationController + def index + render json: Skills.all + end + + def create + skill = Skill.new(skill_params) + + if skill.save + render json: skill + else + render json: {errors: skill.errors.full_messages}, status: 422 + end + end + + def destroy + skill = Skill.find_by(params[:id]) + skill.destroy + render json: {message: "Skill destroyed"} + end + + private + def skill_params + params.require(:skill).permit(:name) + end +end diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb new file mode 100644 index 0000000..bec3bf1 --- /dev/null +++ b/app/controllers/users_controller.rb @@ -0,0 +1,44 @@ +class UsersController < ApplicationController + def index + users = User.includes(:skills, :interviews, :companies_applied_to) + render json: users.map(&:json_with_associations) + end + + def show + user = User.find_by(id: params[:id]) + if user + render json: user.json_with_associations + else + render json: [] + end + end + + def create + User.new(user_params) + if user.save + render json: user.json_with_associations + else + render json: {errors: user.errors.full_messages}, status: 422 + end + end + + def update + user = User.find_by(id: params[:id]) + if user.update(user_params) + render json: user.json_with_associations + else + render json: {errors: user.errors.full_messages}, status: 422 + end + end + + def destroy + user = User.find_by(id: params[:id]) + user.destroy + render json: {message: "User destroyed"} + end + + private + def user_params + params.require(:user).permit(:name, :year, :cohort, :location, :email, :linkedin_url, :github_url, :facebook_url, :current_company, :current_position, :photo_url) + end +end diff --git a/config/routes.rb b/config/routes.rb index 1d14ed0..ab9cdaf 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,8 @@ Rails.application.routes.draw do scope :api do - + resources :users + resources :interviews + resources :companies + resources :skills, only: [:create, :index] end end diff --git a/spec/controllers/companies_controller_spec.rb b/spec/controllers/companies_controller_spec.rb new file mode 100644 index 0000000..3c28330 --- /dev/null +++ b/spec/controllers/companies_controller_spec.rb @@ -0,0 +1,40 @@ +require 'rails_helper' + +RSpec.describe CompaniesController, type: :controller do + + describe "GET #index" do + it "returns http success" do + get :index + expect(response).to have_http_status(:success) + end + end + + describe "GET #create" do + it "returns http success" do + get :create + expect(response).to have_http_status(:success) + end + end + + describe "GET #show" do + it "returns http success" do + get :show + expect(response).to have_http_status(:success) + end + end + + describe "GET #update" do + it "returns http success" do + get :update + expect(response).to have_http_status(:success) + end + end + + describe "GET #destroy" do + it "returns http success" do + get :destroy + expect(response).to have_http_status(:success) + end + end + +end diff --git a/spec/controllers/interviews_controller_spec.rb b/spec/controllers/interviews_controller_spec.rb new file mode 100644 index 0000000..c56f8e8 --- /dev/null +++ b/spec/controllers/interviews_controller_spec.rb @@ -0,0 +1,40 @@ +require 'rails_helper' + +RSpec.describe InterviewsController, type: :controller do + + describe "GET #index" do + it "returns http success" do + get :index + expect(response).to have_http_status(:success) + end + end + + describe "GET #create" do + it "returns http success" do + get :create + expect(response).to have_http_status(:success) + end + end + + describe "GET #show" do + it "returns http success" do + get :show + expect(response).to have_http_status(:success) + end + end + + describe "GET #update" do + it "returns http success" do + get :update + expect(response).to have_http_status(:success) + end + end + + describe "GET #destroy" do + it "returns http success" do + get :destroy + expect(response).to have_http_status(:success) + end + end + +end diff --git a/spec/controllers/skills_controller_spec.rb b/spec/controllers/skills_controller_spec.rb new file mode 100644 index 0000000..4989356 --- /dev/null +++ b/spec/controllers/skills_controller_spec.rb @@ -0,0 +1,26 @@ +require 'rails_helper' + +RSpec.describe SkillsController, type: :controller do + + describe "GET #index" do + it "returns http success" do + get :index + expect(response).to have_http_status(:success) + end + end + + describe "GET #create" do + it "returns http success" do + get :create + expect(response).to have_http_status(:success) + end + end + + describe "GET #destroy" do + it "returns http success" do + get :destroy + expect(response).to have_http_status(:success) + end + end + +end diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb new file mode 100644 index 0000000..706ade1 --- /dev/null +++ b/spec/controllers/users_controller_spec.rb @@ -0,0 +1,40 @@ +require 'rails_helper' + +RSpec.describe UsersController, type: :controller do + + describe "GET #index" do + it "returns http success" do + get :index + expect(response).to have_http_status(:success) + end + end + + describe "GET #create" do + it "returns http success" do + get :create + expect(response).to have_http_status(:success) + end + end + + describe "GET #show" do + it "returns http success" do + get :show + expect(response).to have_http_status(:success) + end + end + + describe "GET #update" do + it "returns http success" do + get :update + expect(response).to have_http_status(:success) + end + end + + describe "GET #destroy" do + it "returns http success" do + get :destroy + expect(response).to have_http_status(:success) + end + end + +end From 090070063753ca604cc19ff27875d22273d7634b Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Mon, 4 Dec 2017 10:46:05 -0800 Subject: [PATCH 17/59] Added routes again. --- config/routes.rb | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index ab9cdaf..f9c46ee 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,8 +1,22 @@ Rails.application.routes.draw do scope :api do + root to: 'interviews#index' + resources :users - resources :interviews - resources :companies - resources :skills, only: [:create, :index] + resources :sessions, only: [:new, :create, :delete] + + resources :companies do + resources :skills, only: [:index, :new, :create] + resources :interviews + end + + resources :users do + resources :skills, only: [:index, :new, :create] + resources :interviews + end + + resources :interviews do + resources :skills, only: [:index, :new, :create] + end end end From fb051b0f5749ef5ee6057e09644db3536bcf6e5d Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Mon, 4 Dec 2017 10:56:20 -0800 Subject: [PATCH 18/59] correction. --- config/routes.rb | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index f9c46ee..ab9cdaf 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,22 +1,8 @@ Rails.application.routes.draw do scope :api do - root to: 'interviews#index' - resources :users - resources :sessions, only: [:new, :create, :delete] - - resources :companies do - resources :skills, only: [:index, :new, :create] - resources :interviews - end - - resources :users do - resources :skills, only: [:index, :new, :create] - resources :interviews - end - - resources :interviews do - resources :skills, only: [:index, :new, :create] - end + resources :interviews + resources :companies + resources :skills, only: [:create, :index] end end From c37385318366e95aeb0ad4c815a97fb3f6cc7ea1 Mon Sep 17 00:00:00 2001 From: flash00 Date: Mon, 4 Dec 2017 11:41:12 -0800 Subject: [PATCH 19/59] Add rspec test for company. --- Gemfile | 1 + Gemfile.lock | 3 ++ app/controllers/companies_controller.rb | 2 +- app/controllers/interviews_controller.rb | 2 +- db/migrate/20171204010457_create_companies.rb | 2 +- .../20171204013338_create_interviews.rb | 16 +++---- db/schema.rb | 18 ++++---- package-lock.json | 4 ++ spec/controllers/companies_controller_spec.rb | 4 +- spec/factories/companies.rb | 4 +- spec/models/company_spec.rb | 42 ++++++++++++++++++- 11 files changed, 73 insertions(+), 25 deletions(-) create mode 100644 package-lock.json diff --git a/Gemfile b/Gemfile index 5ac278b..d81c745 100644 --- a/Gemfile +++ b/Gemfile @@ -40,6 +40,7 @@ group :development, :test do 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 diff --git a/Gemfile.lock b/Gemfile.lock index 177607f..2f66ec0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -154,6 +154,8 @@ GEM 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) @@ -198,6 +200,7 @@ DEPENDENCIES rails-controller-testing rspec-rails sass-rails (~> 5.0) + shoulda-matchers (~> 3.1) spring spring-watcher-listen (~> 2.0.0) tzinfo-data diff --git a/app/controllers/companies_controller.rb b/app/controllers/companies_controller.rb index 2c53994..9ef3ea4 100644 --- a/app/controllers/companies_controller.rb +++ b/app/controllers/companies_controller.rb @@ -35,6 +35,6 @@ def destroy private def company_params - params.require(:company).permit(:name, :location, :website, :tech_field, :has_apprenticeship?) + params.require(:company).permit(:name, :location, :website, :tech_field, :has_apprenticeship) end end diff --git a/app/controllers/interviews_controller.rb b/app/controllers/interviews_controller.rb index 8c1fae7..a2fe214 100644 --- a/app/controllers/interviews_controller.rb +++ b/app/controllers/interviews_controller.rb @@ -39,6 +39,6 @@ def destroy private def interview_params - params.require(:interview).permit(:job_title, :referred?, :received_offer?, :notes, :difficulty_rating, :experience_rating, :accepted_offer?, :phone_screen?, :phone_screen_details, :tech_screen?, :tech_screen_details, :take_home_challenge?, :take_home_challenge_details, :onsite?, :onsite_details, :whiteboarding?, :whiteboarding_details, :negotiation_details, :user_id, :company_id) + params.require(:interview).permit(:job_title, :referred, :received_offer, :notes, :difficulty_rating, :experience_rating, :accepted_offer, :phone_screen, :phone_screen_details, :tech_screen, :tech_screen_details, :take_home_challenge, :take_home_challenge_details, :onsite, :onsite_details, :whiteboarding, :whiteboarding_details, :negotiation_details, :user_id, :company_id) end end diff --git a/db/migrate/20171204010457_create_companies.rb b/db/migrate/20171204010457_create_companies.rb index f2f5dc6..f85f6c3 100644 --- a/db/migrate/20171204010457_create_companies.rb +++ b/db/migrate/20171204010457_create_companies.rb @@ -5,7 +5,7 @@ def change t.string :location t.string :website t.string :tech_field - t.boolean :has_apprenticeship? + t.boolean :has_apprenticeship t.timestamps end diff --git a/db/migrate/20171204013338_create_interviews.rb b/db/migrate/20171204013338_create_interviews.rb index 04aa556..01f954f 100644 --- a/db/migrate/20171204013338_create_interviews.rb +++ b/db/migrate/20171204013338_create_interviews.rb @@ -2,21 +2,21 @@ class CreateInterviews < ActiveRecord::Migration[5.1] def change create_table :interviews do |t| t.string :job_title - t.boolean :referred? - t.boolean :received_offer? + t.boolean :referred + t.boolean :received_offer t.text :notes t.integer :difficulty_rating t.integer :experience_rating - t.boolean :accepted_offer? - t.boolean :phone_screen? + t.boolean :accepted_offer + t.boolean :phone_screen t.text :phone_screen_details - t.boolean :tech_screen? + t.boolean :tech_screen t.text :tech_screen_details - t.boolean :take_home_challenge? + t.boolean :take_home_challenge t.text :take_home_challenge_details - t.boolean :onsite? + t.boolean :onsite t.text :onsite_details - t.boolean :whiteboarding? + t.boolean :whiteboarding t.text :whiteboarding_details t.text :negotiation_details t.references :user diff --git a/db/schema.rb b/db/schema.rb index 9196141..34c8bed 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -20,7 +20,7 @@ t.string "location" t.string "website" t.string "tech_field" - t.boolean "has_apprenticeship?" + t.boolean "has_apprenticeship" t.datetime "created_at", null: false t.datetime "updated_at", null: false end @@ -34,21 +34,21 @@ create_table "interviews", force: :cascade do |t| t.string "job_title" - t.boolean "referred?" - t.boolean "received_offer?" + t.boolean "referred" + t.boolean "received_offer" t.text "notes" t.integer "difficulty_rating" t.integer "experience_rating" - t.boolean "accepted_offer?" - t.boolean "phone_screen?" + t.boolean "accepted_offer" + t.boolean "phone_screen" t.text "phone_screen_details" - t.boolean "tech_screen?" + t.boolean "tech_screen" t.text "tech_screen_details" - t.boolean "take_home_challenge?" + t.boolean "take_home_challenge" t.text "take_home_challenge_details" - t.boolean "onsite?" + t.boolean "onsite" t.text "onsite_details" - t.boolean "whiteboarding?" + t.boolean "whiteboarding" t.text "whiteboarding_details" t.text "negotiation_details" t.bigint "user_id" diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..564c761 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,4 @@ +{ + "name": "BootUp", + "lockfileVersion": 1 +} diff --git a/spec/controllers/companies_controller_spec.rb b/spec/controllers/companies_controller_spec.rb index 3c28330..27c1e7f 100644 --- a/spec/controllers/companies_controller_spec.rb +++ b/spec/controllers/companies_controller_spec.rb @@ -9,9 +9,9 @@ end end - describe "GET #create" do + describe "POST #create" do it "returns http success" do - get :create + post :create, params: {company: {name: 'Create', location: 'placeName', website: 'cnn.com', tech_field: 'edtech', has_apprenticeship: true}} expect(response).to have_http_status(:success) end end diff --git a/spec/factories/companies.rb b/spec/factories/companies.rb index 2fe06fb..32caf51 100644 --- a/spec/factories/companies.rb +++ b/spec/factories/companies.rb @@ -6,8 +6,8 @@ location { "#{Faker::Address.city}, #{Faker::Address.state}" } website { Faker::Internet.url } tech_field { Faker::Company.catch_phrase } - has_apprenticeship? { [true, false].sample } - skills do + has_apprenticeship { [true, false].sample } + skills do FactoryBot.create(:skill) until Skill.all.length > skill_count Skill.all.sample(skill_count) end diff --git a/spec/models/company_spec.rb b/spec/models/company_spec.rb index 23c199c..d062f54 100644 --- a/spec/models/company_spec.rb +++ b/spec/models/company_spec.rb @@ -1,5 +1,45 @@ require 'rails_helper' RSpec.describe Company, type: :model do - pending "add some examples to (or delete) #{__FILE__}" + + let(:company) { Company.create!( + name: "Paypal", + location: "Palo Alto", + website: "paypal.com", + tech_field: 'fin tech', + has_apprenticeship: 'false' + ) } + let(:interview) { Interview.create!( + job_title: "Junior Engineer", + referred: "false", + received_offer: true, + notes: "good culture", + difficulty_rating: 3, + experience_rating: 2, + accepted_offer: true, + phone_screen: true, + phone_screen_details: "lasted 2 hours", + tech_screen: true, + tech_screen_details: "ruby and javascript", + take_home_challenge: true, + take_home_challenge_details: "took 8 hours to complete", + onsite: true, + onsite_details: "met with 7 people", + whiteboarding: false, + whiteboarding_details: "none", + negotiation_details: "counteroffer accepted", + ) } + let(:skill) { Skill.create!( + name: "javascript" + )} + + describe "associations" do + it "has many interviews" do + expect(company.interviews).to eq interview + end + + # it { should have_many(:interviewees).through(:interviews)} do + + # end + end end From d3df52afde92d17a8e88b4a78c505c26d88f1826 Mon Sep 17 00:00:00 2001 From: flash00 Date: Mon, 4 Dec 2017 14:34:30 -0800 Subject: [PATCH 20/59] Complete company associations rspec. --- spec/factories/interviews.rb | 18 ++++++++--------- spec/factories/users.rb | 2 +- spec/models/company_spec.rb | 39 +++++++++++++++++++++++++----------- 3 files changed, 37 insertions(+), 22 deletions(-) diff --git a/spec/factories/interviews.rb b/spec/factories/interviews.rb index 99583ed..4e49032 100644 --- a/spec/factories/interviews.rb +++ b/spec/factories/interviews.rb @@ -3,27 +3,27 @@ transient { skill_count 4 } job_title "MyString" - referred? { [true, false].sample } - received_offer? false + referred { [true, false].sample } + received_offer false notes "MyText" difficulty_rating { (1..3).to_a.sample } experience_rating { (1..3).to_a.sample } - accepted_offer? { [true, false].sample } - phone_screen? { [true, false].sample } + accepted_offer { [true, false].sample } + phone_screen { [true, false].sample } phone_screen_details { Faker::Hacker.say_something_smart } - tech_screen? { [true, false].sample } + tech_screen { [true, false].sample } tech_screen_details { Faker::Hacker.say_something_smart } - take_home_challenge? { [true, false].sample } + take_home_challenge { [true, false].sample } take_home_challenge_details { Faker::Hacker.say_something_smart } - onsite? { [true, false].sample } + onsite { [true, false].sample } onsite_details { Faker::Hacker.say_something_smart } - whiteboarding? { [true, false].sample } + whiteboarding { [true, false].sample } whiteboarding_details { Faker::Hacker.say_something_smart } negotiation_details { Faker::Hacker.say_something_smart } interviewee { User.all.sample || FactoryBot.create(:user) } company { Company.all.sample || FactoryBot.create(:company) } - skills do + skills do FactoryBot.create(:skill) until Skill.all.length > skill_count Skill.all.sample(skill_count) end diff --git a/spec/factories/users.rb b/spec/factories/users.rb index 385dbfe..624d6f7 100644 --- a/spec/factories/users.rb +++ b/spec/factories/users.rb @@ -17,7 +17,7 @@ current_company { Faker::Company.name } current_position { Faker::Company.profession } photo_url { Faker::Fillmurray.image } - skills do + skills do FactoryBot.create(:skill) until Skill.all.length > skill_count Skill.all.sample(skill_count) end diff --git a/spec/models/company_spec.rb b/spec/models/company_spec.rb index d062f54..8c80e1a 100644 --- a/spec/models/company_spec.rb +++ b/spec/models/company_spec.rb @@ -1,15 +1,22 @@ require 'rails_helper' -RSpec.describe Company, type: :model do - +describe Company do let(:company) { Company.create!( name: "Paypal", location: "Palo Alto", website: "paypal.com", tech_field: 'fin tech', - has_apprenticeship: 'false' - ) } + has_apprenticeship: 'false') + } + let(:interviewee) { User.create!( + name: "Bob Roberts", + year: "2015", + cohort: "Smelly Poodles", + location: "San Carlos") + } let(:interview) { Interview.create!( + company: company, + interviewee: interviewee, job_title: "Junior Engineer", referred: "false", received_offer: true, @@ -27,19 +34,27 @@ onsite_details: "met with 7 people", whiteboarding: false, whiteboarding_details: "none", - negotiation_details: "counteroffer accepted", - ) } + negotiation_details: "counteroffer accepted") + } let(:skill) { Skill.create!( - name: "javascript" - )} + name: "javascript") + } + let(:user) { User.create!( + name: "Bob Roberts", + year: "2015", + cohort: "Smelly Poodles", + location: "San Carlos") + } + describe "associations" do it "has many interviews" do - expect(company.interviews).to eq interview + expect(company.interviews).to eq [interview] end - # it { should have_many(:interviewees).through(:interviews)} do - - # end + it "has many interviewees" do + FactoryBot.create(:interview, {company: company, interviewee: interviewee}) + expect(company.interviewees.first).to eq interviewee + end end end From a74575900e899f55d96979e4eb626af949444d3f Mon Sep 17 00:00:00 2001 From: flash00 Date: Tue, 5 Dec 2017 09:15:41 -0800 Subject: [PATCH 21/59] Test search gem. --- config/environment.rb | 1 + config/sunspot.yml | 0 spec/models/user_spec.rb | 54 +++++++++++++++++++++++++++++++++++++++- 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 config/sunspot.yml diff --git a/config/environment.rb b/config/environment.rb index 426333b..f467c11 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -3,3 +3,4 @@ # Initialize the Rails application. Rails.application.initialize! + diff --git a/config/sunspot.yml b/config/sunspot.yml new file mode 100644 index 0000000..e69de29 diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 47a31bb..fa1226f 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -1,5 +1,57 @@ require 'rails_helper' RSpec.describe User, type: :model do - pending "add some examples to (or delete) #{__FILE__}" + let(:company) { Company.create!( + name: "Paypal", + location: "Palo Alto", + website: "paypal.com", + tech_field: 'fin tech', + has_apprenticeship: 'false') + } + let(:interviewee) { User.create!( + name: "Bob Roberts", + year: "2015", + cohort: "Smelly Poodles", + location: "San Carlos") + } + let(:interview) { Interview.create!( + company: company, + interviewee: interviewee, + job_title: "Junior Engineer", + referred: "false", + received_offer: true, + notes: "good culture", + difficulty_rating: 3, + experience_rating: 2, + accepted_offer: true, + phone_screen: true, + phone_screen_details: "lasted 2 hours", + tech_screen: true, + tech_screen_details: "ruby and javascript", + take_home_challenge: true, + take_home_challenge_details: "took 8 hours to complete", + onsite: true, + onsite_details: "met with 7 people", + whiteboarding: false, + whiteboarding_details: "none", + negotiation_details: "counteroffer accepted") + } + let(:skill) { Skill.create!( + name: "javascript") + } + let(:user) { User.create!( + name: "Bob Roberts", + year: "2015", + cohort: "Smelly Poodles", + location: "San Carlos") + } + let(:companyies_applied_to) { Companies_applied_to.create!( + name: "Paypal") + } end + + +describe "associations" do + FactoryBot.create() + expect().to eq +end \ No newline at end of file From 3dd4575201be0d68b3f59b67ba6e6152fb78cf79 Mon Sep 17 00:00:00 2001 From: flash00 Date: Tue, 5 Dec 2017 11:32:07 -0800 Subject: [PATCH 22/59] Add installation code for keyword search. --- Gemfile | 2 ++ Gemfile.lock | 5 +++++ app/models/application_record.rb | 1 + app/models/user.rb | 2 +- ...20171205193026_create_pg_search_documents.rb | 17 +++++++++++++++++ db/schema.rb | 11 ++++++++++- 6 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20171205193026_create_pg_search_documents.rb diff --git a/Gemfile b/Gemfile index d81c745..be97ef6 100644 --- a/Gemfile +++ b/Gemfile @@ -32,6 +32,8 @@ gem 'jbuilder', '~> 2.5' # Use Capistrano for deployment # gem 'capistrano-rails', group: :development +gem 'pg_search' + 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] diff --git a/Gemfile.lock b/Gemfile.lock index 2f66ec0..4a1352b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -90,6 +90,10 @@ GEM nokogiri (1.8.1) mini_portile2 (~> 2.3.0) 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-test (0.8.2) @@ -195,6 +199,7 @@ DEPENDENCIES jbuilder (~> 2.5) listen (>= 3.0.5, < 3.2) pg (~> 0.18) + pg_search puma (~> 3.7) rails (~> 5.1.4) rails-controller-testing diff --git a/app/models/application_record.rb b/app/models/application_record.rb index 10a4cba..5c87a41 100644 --- a/app/models/application_record.rb +++ b/app/models/application_record.rb @@ -1,3 +1,4 @@ class ApplicationRecord < ActiveRecord::Base + include PgSearch self.abstract_class = true end diff --git a/app/models/user.rb b/app/models/user.rb index 9a6ac28..b742ef1 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -4,7 +4,7 @@ class User < ApplicationRecord has_many :companies_applied_to, through: :interviews, source: :company def json_with_associations - self.as_json(include: { + self.as_json(include: { skills: {only: [:id, :name]}, interviews: {include: :company}, companies_applied_to: {} diff --git a/db/migrate/20171205193026_create_pg_search_documents.rb b/db/migrate/20171205193026_create_pg_search_documents.rb new file mode 100644 index 0000000..c38c51d --- /dev/null +++ b/db/migrate/20171205193026_create_pg_search_documents.rb @@ -0,0 +1,17 @@ +class CreatePgSearchDocuments < ActiveRecord::Migration[5.1] + def self.up + say_with_time("Creating table for pg_search multisearch") do + create_table :pg_search_documents do |t| + t.text :content + t.belongs_to :searchable, :polymorphic => true, :index => true + t.timestamps null: false + end + end + end + + def self.down + say_with_time("Dropping table for pg_search multisearch") do + drop_table :pg_search_documents + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 34c8bed..bdaf9c7 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20171204013541) do +ActiveRecord::Schema.define(version: 20171205193026) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -66,6 +66,15 @@ t.index ["skill_id"], name: "index_interviews_skills_on_skill_id" end + create_table "pg_search_documents", force: :cascade do |t| + t.text "content" + t.string "searchable_type" + t.bigint "searchable_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["searchable_type", "searchable_id"], name: "index_pg_search_documents_on_searchable_type_and_searchable_id" + end + create_table "skills", force: :cascade do |t| t.string "name" t.datetime "created_at", null: false From ca90903113f837459716180a6f12e3d696c9d4aa Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Tue, 5 Dec 2017 12:32:15 -0800 Subject: [PATCH 23/59] Changed 'find_by(params[:id])' to 'find_by(id: params[:id]) in companies_controller.rb. --- app/controllers/companies_controller.rb | 4 ++-- app/controllers/skills_controller.rb | 3 ++- app/controllers/users_controller.rb | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/controllers/companies_controller.rb b/app/controllers/companies_controller.rb index 9ef3ea4..fa41a68 100644 --- a/app/controllers/companies_controller.rb +++ b/app/controllers/companies_controller.rb @@ -14,12 +14,12 @@ def create end def show - company = Company.find_by(params[:id]) + company = Company.find_by(id: params[:id]) render json: company end def update - company = Company.find_by(params[:id]) + company = Company.find_by(id: params[:id]) if company.update(company_params) render json: company else diff --git a/app/controllers/skills_controller.rb b/app/controllers/skills_controller.rb index 9ccb6aa..c38afcd 100644 --- a/app/controllers/skills_controller.rb +++ b/app/controllers/skills_controller.rb @@ -14,12 +14,13 @@ def create end def destroy - skill = Skill.find_by(params[:id]) + skill = Skill.find_by(id: params[:id]) skill.destroy render json: {message: "Skill destroyed"} end private + def skill_params params.require(:skill).permit(:name) end diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index bec3bf1..56d34c3 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -38,6 +38,7 @@ def destroy end private + def user_params params.require(:user).permit(:name, :year, :cohort, :location, :email, :linkedin_url, :github_url, :facebook_url, :current_company, :current_position, :photo_url) end From 61f46d6f69d6e1647899b2b668b5650ee06b54ba Mon Sep 17 00:00:00 2001 From: flash00 Date: Tue, 5 Dec 2017 15:07:11 -0800 Subject: [PATCH 24/59] Add Rack Cors gem for search function. --- Gemfile | 2 ++ Gemfile.lock | 2 ++ app/controllers/application_controller.rb | 6 ++++ app/controllers/searches_controller.rb | 36 +++++++++++++++++++++++ app/models/company.rb | 1 + config/application.rb | 8 ++++- config/routes.rb | 1 + db/schema.rb | 6 ++++ 8 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 app/controllers/searches_controller.rb diff --git a/Gemfile b/Gemfile index be97ef6..f09cb4a 100644 --- a/Gemfile +++ b/Gemfile @@ -33,6 +33,8 @@ gem 'jbuilder', '~> 2.5' # gem 'capistrano-rails', group: :development gem 'pg_search' +gem 'rack-cors' + group :development, :test do # Call 'byebug' anywhere in the code to stop execution and get a debugger console diff --git a/Gemfile.lock b/Gemfile.lock index 4a1352b..d3d668b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -96,6 +96,7 @@ GEM 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) @@ -201,6 +202,7 @@ DEPENDENCIES pg (~> 0.18) pg_search puma (~> 3.7) + rack-cors rails (~> 5.1.4) rails-controller-testing rspec-rails diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 3f1a602..1fc38a9 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,3 +1,9 @@ class ApplicationController < ActionController::API + after_action :cors_set_access_control_headers + def cors_set_access_control_headers + headers['Access-Control-Allow-Origin'] = '*' + headers['Access-Control-Allow-Methods'] = 'POST, GET, OPTIONS' + headers['Access-Control-Allow-Headers'] = '*' + end end diff --git a/app/controllers/searches_controller.rb b/app/controllers/searches_controller.rb new file mode 100644 index 0000000..9c233e0 --- /dev/null +++ b/app/controllers/searches_controller.rb @@ -0,0 +1,36 @@ +class SearchesController < ApplicationController + def index + searches = Search.all + render json: searches + end + + def create + p params + render json: PgSearch.multisearch("Edgar") + end + + def show + search = Search.find_by(params[:id]) + render json: search + end + + def update + search = Search.find_by(params[:id]) + if search.update(search_params) + render json: search + else + render json: {errors: search.errors.full_messages}, statue: 422 + end + end + + def destroy + search = Search.find_by(id: params[:id]) + search.destroy + render json: {message: "Search destroyed"} + end + + private + def search_params + params.require(:search).permit(:name, :location, :website, :tech_field, :has_apprenticeship, :created_at, :updated_at) + end +end diff --git a/app/models/company.rb b/app/models/company.rb index b803244..45b15f4 100644 --- a/app/models/company.rb +++ b/app/models/company.rb @@ -2,6 +2,7 @@ class Company < ApplicationRecord has_many :interviews has_many :interviewees, through: :interviews has_and_belongs_to_many :skills + multisearchable against: [:name, :location, :website, :tech_field, :has_apprenticeship, :created_at, :updated_at] def serializable_hash(options = nil) super({except: [:created_at, :updated_at]}.merge(options || {})) diff --git a/config/application.rb b/config/application.rb index 2aebca5..658e166 100644 --- a/config/application.rb +++ b/config/application.rb @@ -10,6 +10,7 @@ require "action_view/railtie" require "action_cable/engine" require "sprockets/railtie" + # require "rails/test_unit/railtie" # Require the gems listed in Gemfile, including any gems @@ -21,7 +22,12 @@ class Application < Rails::Application config.api_only = true # Initialize configuration defaults for originally generated Rails version. config.load_defaults 5.1 - + config.middleware.insert_before 0, Rack::Cors do + allow do + origins '*' + resource '*', headers: :any, methods: [:get, :post] + end + end # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. diff --git a/config/routes.rb b/config/routes.rb index ab9cdaf..f90f302 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,5 +4,6 @@ resources :interviews resources :companies resources :skills, only: [:create, :index] + resources :searches end end diff --git a/db/schema.rb b/db/schema.rb index bdaf9c7..4d2636e 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -105,3 +105,9 @@ end end + + +# searches_controller.rb +# define action - implement +# routes +# update routes \ No newline at end of file From 3bd2329e1b2e179184d0e53f1d08437a18faed1f Mon Sep 17 00:00:00 2001 From: flash00 Date: Tue, 5 Dec 2017 16:46:34 -0800 Subject: [PATCH 25/59] Frontend search function finished. --- app/controllers/searches_controller.rb | 3 +-- app/models/application_record.rb | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controllers/searches_controller.rb b/app/controllers/searches_controller.rb index 9c233e0..1954795 100644 --- a/app/controllers/searches_controller.rb +++ b/app/controllers/searches_controller.rb @@ -5,8 +5,7 @@ def index end def create - p params - render json: PgSearch.multisearch("Edgar") + render json: PgSearch.multisearch(params[:searchInput]) end def show diff --git a/app/models/application_record.rb b/app/models/application_record.rb index 5c87a41..f845e76 100644 --- a/app/models/application_record.rb +++ b/app/models/application_record.rb @@ -1,4 +1,4 @@ class ApplicationRecord < ActiveRecord::Base - include PgSearch + include PgSearch self.abstract_class = true end From c5d501e396150f2077cd159f471f7beb8723542c Mon Sep 17 00:00:00 2001 From: Kenn Sugiyama Date: Tue, 5 Dec 2017 16:57:49 -0800 Subject: [PATCH 26/59] Update interview#create to save new interviews. --- Gemfile | 2 +- Gemfile.lock | 4 ++-- app/controllers/interviews_controller.rb | 9 +++++---- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Gemfile b/Gemfile index d81c745..4302a36 100644 --- a/Gemfile +++ b/Gemfile @@ -53,4 +53,4 @@ group :development do end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem -gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 2f66ec0..62bd04e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,10 +1,10 @@ GIT remote: https://github.com/stympy/faker.git - revision: c972b0d791dd99d45058ba4fe625dbd27bb3fbe0 + revision: 47b75064dc00fac534d2b87b69836746ea8c9fb3 branch: master specs: faker (1.8.4) - i18n (~> 0.5) + i18n (~> 0.9.1) GEM remote: https://rubygems.org/ diff --git a/app/controllers/interviews_controller.rb b/app/controllers/interviews_controller.rb index a2fe214..07747f9 100644 --- a/app/controllers/interviews_controller.rb +++ b/app/controllers/interviews_controller.rb @@ -14,11 +14,12 @@ def show end def create - Interview.new(interview_params) - if interview.save - render json: interview.json_with_associations + @interview = Interview.new(interview_params) + if @interview.save + render json: @interview.json_with_associations else - render json: {errors: interview.errors.full_messages}, status: 422 + p @interview.errors.full_messages + render json: {errors: @interview.errors.full_messages}, status: 422 end end From 4334c28a0f4b0b4a83b0c4f20603a3ca267d6d85 Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Wed, 6 Dec 2017 13:54:11 -0800 Subject: [PATCH 27/59] Add OAuth gems for LinkedIn --- Gemfile | 5 ++++- Gemfile.lock | 25 +++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index d81c745..bc2dabe 100644 --- a/Gemfile +++ b/Gemfile @@ -27,11 +27,14 @@ 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' +gem 'bcrypt', '~> 3.1.7' # Use Capistrano for deployment # gem 'capistrano-rails', group: :development +gem 'omniauth' +gem 'omniauth-linkedin-oauth2' + 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] diff --git a/Gemfile.lock b/Gemfile.lock index 2f66ec0..3e77128 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -47,6 +47,7 @@ GEM 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) @@ -64,14 +65,18 @@ GEM 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) @@ -86,9 +91,26 @@ GEM 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) puma (3.11.0) rack (2.0.3) @@ -188,12 +210,15 @@ 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) puma (~> 3.7) rails (~> 5.1.4) From 60574fba8c69b164738efbce7482ab69dd0af9f6 Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Wed, 6 Dec 2017 13:55:07 -0800 Subject: [PATCH 28/59] Add linked in user fields to model --- app/models/user.rb | 15 +++++++++++++++ db/migrate/20171205182332_add_uid_to_user.rb | 5 +++++ 2 files changed, 20 insertions(+) create mode 100644 db/migrate/20171205182332_add_uid_to_user.rb diff --git a/app/models/user.rb b/app/models/user.rb index 9a6ac28..c8370d2 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -14,4 +14,19 @@ def json_with_associations def serializable_hash(options = nil) super({except: [:created_at, :updated_at]}.merge(options || {})) end + + def self.find_or_create_from_auth_hash(auth_hash) + self.find_or_create_by(uid: auth_hash[:uid]) do |user| + user.name = auth_hash[:info][:first_name] + ' ' + auth_hash[:info][:last_name] + user.email = auth_hash[:info][:email] + # user.description = auth_hash[:info][:description] + user.location = auth_hash[:info][:location] + user.photo_url = auth_hash.extra.raw_info.pictureUrls.values[1][0] + user.linkedin_url = auth_hash[:info][:urls][:public_profile] + # user.linkedin_token = auth_hash[:credentials][:token] + # user.linkedin_token_expiration = auth_hash[:credentials][:expires_at] + user.current_company = auth_hash[:extra][:raw_info][:positions][:values][0][:company][:name] + user.current_position = auth_hash[:extra][:raw_info][:positions][:values][0][:title] + end + end end diff --git a/db/migrate/20171205182332_add_uid_to_user.rb b/db/migrate/20171205182332_add_uid_to_user.rb new file mode 100644 index 0000000..f6476ba --- /dev/null +++ b/db/migrate/20171205182332_add_uid_to_user.rb @@ -0,0 +1,5 @@ +class AddUidToUser < ActiveRecord::Migration[5.1] + def change + add_column :users, :uid, :string + end +end From da1f21e825d6fddb3e4b0b982f16e4fb7929534e Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Wed, 6 Dec 2017 13:56:42 -0800 Subject: [PATCH 29/59] Create Token module for encoding and decoding jwts --- app/lib/tokenize.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 app/lib/tokenize.rb diff --git a/app/lib/tokenize.rb b/app/lib/tokenize.rb new file mode 100644 index 0000000..17d0cbc --- /dev/null +++ b/app/lib/tokenize.rb @@ -0,0 +1,23 @@ +module Tokenize + def self.encode(sub) + payload = { + iss: 'dbc-bootup', + sub: sub, + exp: 4.hours.from_now.to_i, + iat: Time.now.to_i + } + JWT.encode payload, ENV['JWT_SECRET'], 'HS256' + end + + def self.decode(token) + options = { + iss: 'dbc-bootup', + verify_iss: true, + verify_iat: true, + leeway: 30, + algorithm: 'HS256' + } + JWT.decode token, ENV['JWT_SECRET'], true, options + end +end + From 8c530905ee42f206daab0fc7d93b61306f085a3d Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Wed, 6 Dec 2017 13:58:08 -0800 Subject: [PATCH 30/59] Add support for sesssions and cookies so that omniauth will work --- app/controllers/application_controller.rb | 2 +- config/application.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 3f1a602..257a571 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,3 +1,3 @@ class ApplicationController < ActionController::API - + include ActionController::Cookies end diff --git a/config/application.rb b/config/application.rb index 2aebca5..1ac3d8b 100644 --- a/config/application.rb +++ b/config/application.rb @@ -28,5 +28,9 @@ class Application < Rails::Application # Don't generate system test files. config.generators.system_tests = nil + + config.session_store :cookie_store, key: '_interslice_session' + config.middleware.use ActionDispatch::Cookies # Required for all session management + config.middleware.use ActionDispatch::Session::CookieStore, config.session_options end end From 23044da9d427f0cf083d80807f23681b762fff2c Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Wed, 6 Dec 2017 13:58:29 -0800 Subject: [PATCH 31/59] Add routes and controller for linkedin login --- app/controllers/sessions_controller.rb | 39 ++++++++++++++++++++++++++ config/initializers/omniauth.rb | 5 ++++ config/routes.rb | 2 ++ db/schema.rb | 21 +++++++------- 4 files changed, 57 insertions(+), 10 deletions(-) create mode 100644 app/controllers/sessions_controller.rb create mode 100644 config/initializers/omniauth.rb diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb new file mode 100644 index 0000000..8c47da9 --- /dev/null +++ b/app/controllers/sessions_controller.rb @@ -0,0 +1,39 @@ +class SessionsController < ApplicationController + def login + user = User.find_or_create_from_auth_hash(auth_hash) + if user.valid? + token = Tokenize.encode({uid: user.uid}) + cookies[:jwt] = {value: token, httponly: true} + redirect_to '/' + else + flash[:error] = "Login Failed" + redirect_to '/user/info' + end + end + + def logout + cookies.delete :jwt + redirect_to '/test' + end + + protected + + def auth_hash + request.env['omniauth.auth'] + end + + private + + def linkedin_params + params.require(:user).permit( + :first_name, + :last_name, + :linkedin_image_url, + :current_title, + :current_company, + :usership_company, + :email + ) + end +end + diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb new file mode 100644 index 0000000..25d2ab4 --- /dev/null +++ b/config/initializers/omniauth.rb @@ -0,0 +1,5 @@ +Rails.application.config.middleware.use OmniAuth::Builder do + # provider :developer unless Rails.env.production? + provider :linkedin, ENV['LINKEDIN_CLIENT_ID'], ENV['LINKEDIN_SECRET_KEY'], fields: ['id', 'email-address', 'first-name', 'last-name', 'headline', 'location', 'industry', 'picture-url', 'public-profile-url', 'positions', "picture-urls::(original)"], callback_path: '/api/auth/linkedin/callback', path_prefix: '/api/auth' +end + diff --git a/config/routes.rb b/config/routes.rb index ab9cdaf..25dd668 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,5 +4,7 @@ resources :interviews resources :companies resources :skills, only: [:create, :index] + get '/auth/linkedin/callback', to: 'sessions#login' + get '/auth/linkedin/logout', to: 'sessions#logout' end end diff --git a/db/schema.rb b/db/schema.rb index 34c8bed..b28b6c4 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20171204013541) do +ActiveRecord::Schema.define(version: 20171205182332) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -20,7 +20,7 @@ t.string "location" t.string "website" t.string "tech_field" - t.boolean "has_apprenticeship" + t.boolean "has_apprenticeship?" t.datetime "created_at", null: false t.datetime "updated_at", null: false end @@ -34,21 +34,21 @@ create_table "interviews", force: :cascade do |t| t.string "job_title" - t.boolean "referred" - t.boolean "received_offer" + t.boolean "referred?" + t.boolean "received_offer?" t.text "notes" t.integer "difficulty_rating" t.integer "experience_rating" - t.boolean "accepted_offer" - t.boolean "phone_screen" + t.boolean "accepted_offer?" + t.boolean "phone_screen?" t.text "phone_screen_details" - t.boolean "tech_screen" + t.boolean "tech_screen?" t.text "tech_screen_details" - t.boolean "take_home_challenge" + t.boolean "take_home_challenge?" t.text "take_home_challenge_details" - t.boolean "onsite" + t.boolean "onsite?" t.text "onsite_details" - t.boolean "whiteboarding" + t.boolean "whiteboarding?" t.text "whiteboarding_details" t.text "negotiation_details" t.bigint "user_id" @@ -93,6 +93,7 @@ t.string "photo_url" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.string "uid" end end From 219d2c551711d0ecc9c1ea8bfa2fc5f9b739b2ad Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Wed, 6 Dec 2017 14:20:47 -0800 Subject: [PATCH 32/59] Add timestamps to Interview model json return --- app/models/interview.rb | 6 +++--- db/schema.rb | 6 ------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/app/models/interview.rb b/app/models/interview.rb index f4418e3..ab03ce4 100644 --- a/app/models/interview.rb +++ b/app/models/interview.rb @@ -11,7 +11,7 @@ def json_with_associations }) end - def serializable_hash(options = nil) - super({except: [:created_at, :updated_at]}.merge(options || {})) - end + # def serializable_hash(options = nil) + # super({except: [:created_at, :updated_at]}.merge(options || {})) + # end end diff --git a/db/schema.rb b/db/schema.rb index 4d2636e..bdaf9c7 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -105,9 +105,3 @@ end end - - -# searches_controller.rb -# define action - implement -# routes -# update routes \ No newline at end of file From 4994f60876c1f227c500f3b682ad2b90979f8356 Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Wed, 6 Dec 2017 17:53:25 -0800 Subject: [PATCH 33/59] Update list of params put in the jwt token --- app/controllers/application_controller.rb | 15 ++++++++++----- app/controllers/sessions_controller.rb | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 3f52b22..add6f26 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -2,9 +2,14 @@ class ApplicationController < ActionController::API include ActionController::Cookies after_action :cors_set_access_control_headers - def cors_set_access_control_headers - headers['Access-Control-Allow-Origin'] = '*' - headers['Access-Control-Allow-Methods'] = 'POST, GET, OPTIONS' - headers['Access-Control-Allow-Headers'] = '*' - end + def current_user + token = Tokenize.decode(cookies[:jwt]) + User.try(:find_by, {id: token.first['sub']['id']}) + end + + def cors_set_access_control_headers + headers['Access-Control-Allow-Origin'] = '*' + headers['Access-Control-Allow-Methods'] = 'POST, GET, OPTIONS' + headers['Access-Control-Allow-Headers'] = '*' + end end diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 8c47da9..b903a33 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -2,7 +2,7 @@ class SessionsController < ApplicationController def login user = User.find_or_create_from_auth_hash(auth_hash) if user.valid? - token = Tokenize.encode({uid: user.uid}) + token = Tokenize.encode({uid: user.uid, id: user.id}) cookies[:jwt] = {value: token, httponly: true} redirect_to '/' else From 22961bd09181b9ae621dd8527fbc02c8852b00ea Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Wed, 6 Dec 2017 18:32:58 -0800 Subject: [PATCH 34/59] Add interviews, skills, and interviewees to json from company show --- app/controllers/companies_controller.rb | 5 +++-- app/models/company.rb | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/controllers/companies_controller.rb b/app/controllers/companies_controller.rb index 9ef3ea4..4bcb87a 100644 --- a/app/controllers/companies_controller.rb +++ b/app/controllers/companies_controller.rb @@ -14,8 +14,9 @@ def create end def show - company = Company.find_by(params[:id]) - render json: company + company = Company.includes(:interviews, :skills, :interviewees).find_by_id(params[:id]) + + render json: company.json_with_association end def update diff --git a/app/models/company.rb b/app/models/company.rb index 45b15f4..6bae5b7 100644 --- a/app/models/company.rb +++ b/app/models/company.rb @@ -7,4 +7,12 @@ class Company < ApplicationRecord def serializable_hash(options = nil) super({except: [:created_at, :updated_at]}.merge(options || {})) end + + def json_with_association + self.as_json(include: { + skills: {only: [:id, :name]}, + interviews: {include: :interviewee}, + interviewees: {} + }) + end end From e944838ce2c3216bd39245d0fc2b91458b7a0c0a Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Wed, 6 Dec 2017 21:41:37 -0800 Subject: [PATCH 35/59] Add completed registration flag to User --- .../20171207054024_add_completed_registration_to_users.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20171207054024_add_completed_registration_to_users.rb diff --git a/db/migrate/20171207054024_add_completed_registration_to_users.rb b/db/migrate/20171207054024_add_completed_registration_to_users.rb new file mode 100644 index 0000000..2c36e09 --- /dev/null +++ b/db/migrate/20171207054024_add_completed_registration_to_users.rb @@ -0,0 +1,5 @@ +class AddCompletedRegistrationToUsers < ActiveRecord::Migration[5.1] + def change + add_column :users, :completed_registration, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index 13bf716..0353ef9 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20171205193026) do +ActiveRecord::Schema.define(version: 20171207054024) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -103,6 +103,7 @@ t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "uid" + t.boolean "completed_registration" end end From 7744cdb90d6fa45f0b642a3bad2fbbdea6d00c2b Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Wed, 6 Dec 2017 21:44:15 -0800 Subject: [PATCH 36/59] Make User#completed_registration false by default --- db/migrate/20171207054255_change_completed_registration.rb | 5 +++++ db/schema.rb | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20171207054255_change_completed_registration.rb diff --git a/db/migrate/20171207054255_change_completed_registration.rb b/db/migrate/20171207054255_change_completed_registration.rb new file mode 100644 index 0000000..cd4137e --- /dev/null +++ b/db/migrate/20171207054255_change_completed_registration.rb @@ -0,0 +1,5 @@ +class ChangeCompletedRegistration < ActiveRecord::Migration[5.1] + def change + change_column :users, :completed_registration, :boolean, :default => false + end +end diff --git a/db/schema.rb b/db/schema.rb index 0353ef9..893df44 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20171207054024) do +ActiveRecord::Schema.define(version: 20171207054255) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -103,7 +103,7 @@ t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "uid" - t.boolean "completed_registration" + t.boolean "completed_registration", default: false end end From 0be5ca54e18b7f44975794fa4754d6fcbbc0b181 Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Thu, 7 Dec 2017 00:22:03 -0800 Subject: [PATCH 37/59] Add logged_in? and current_user application controller methods --- app/controllers/application_controller.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index add6f26..2e50eb0 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -3,10 +3,15 @@ class ApplicationController < ActionController::API after_action :cors_set_access_control_headers def current_user + return nil if cookies[:jwt].nil? || cookies[:jwt].empty? token = Tokenize.decode(cookies[:jwt]) User.try(:find_by, {id: token.first['sub']['id']}) end + def logged_in? + !!current_user + end + def cors_set_access_control_headers headers['Access-Control-Allow-Origin'] = '*' headers['Access-Control-Allow-Methods'] = 'POST, GET, OPTIONS' From 5ed1b332279e1d1ebc5567d4ad339d09403ff8ee Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Thu, 7 Dec 2017 00:24:20 -0800 Subject: [PATCH 38/59] More login and add logout functionality --- app/controllers/sessions_controller.rb | 2 +- app/controllers/users_controller.rb | 9 +++++++++ app/models/user.rb | 2 +- config/routes.rb | 3 ++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index b903a33..28abd27 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -13,7 +13,7 @@ def login def logout cookies.delete :jwt - redirect_to '/test' + redirect_to '/' end protected diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index bec3bf1..348c6b0 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -37,6 +37,15 @@ def destroy render json: {message: "User destroyed"} end + def profile + user = current_user + if user + render json: user.json_with_associations + else + render json: {} + end + end + private def user_params params.require(:user).permit(:name, :year, :cohort, :location, :email, :linkedin_url, :github_url, :facebook_url, :current_company, :current_position, :photo_url) diff --git a/app/models/user.rb b/app/models/user.rb index 85fe176..46a44e2 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -20,7 +20,7 @@ def self.find_or_create_from_auth_hash(auth_hash) user.name = auth_hash[:info][:first_name] + ' ' + auth_hash[:info][:last_name] user.email = auth_hash[:info][:email] # user.description = auth_hash[:info][:description] - user.location = auth_hash[:info][:location] + user.location = auth_hash[:info][:location][:name] user.photo_url = auth_hash.extra.raw_info.pictureUrls.values[1][0] user.linkedin_url = auth_hash[:info][:urls][:public_profile] # user.linkedin_token = auth_hash[:credentials][:token] diff --git a/config/routes.rb b/config/routes.rb index 17531bf..cda59bb 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,7 +5,8 @@ resources :companies resources :skills, only: [:create, :index] get '/auth/linkedin/callback', to: 'sessions#login' - get '/auth/linkedin/logout', to: 'sessions#logout' + get '/logout', to: 'sessions#logout' resources :searches + get '/profile', to: 'users#profile' end end From 33576f438d2465f53818116f1f1726593299d23d Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Thu, 7 Dec 2017 00:25:46 -0800 Subject: [PATCH 39/59] Allow Interview#create to utilize and require current_user to make new record --- app/controllers/interviews_controller.rb | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/app/controllers/interviews_controller.rb b/app/controllers/interviews_controller.rb index 07747f9..9e9684e 100644 --- a/app/controllers/interviews_controller.rb +++ b/app/controllers/interviews_controller.rb @@ -14,13 +14,19 @@ def show end def create - @interview = Interview.new(interview_params) - if @interview.save - render json: @interview.json_with_associations + if !logged_in? + render json: {error: "Not logged in", message: "Must be logged in to report on an interview"}, status: 403 else - p @interview.errors.full_messages - render json: {errors: @interview.errors.full_messages}, status: 422 + interview = Interview.new(interview_params) + interview.interviewee = current_user + if interview.save + render json: interview.json_with_associations + else + p interview.errors.full_messages + render json: {errors: interview.errors.full_messages}, status: 422 + end end + end def update @@ -40,6 +46,6 @@ def destroy private def interview_params - params.require(:interview).permit(:job_title, :referred, :received_offer, :notes, :difficulty_rating, :experience_rating, :accepted_offer, :phone_screen, :phone_screen_details, :tech_screen, :tech_screen_details, :take_home_challenge, :take_home_challenge_details, :onsite, :onsite_details, :whiteboarding, :whiteboarding_details, :negotiation_details, :user_id, :company_id) + params.require(:interview).permit(:job_title, :referred, :received_offer, :notes, :difficulty_rating, :experience_rating, :accepted_offer, :phone_screen, :phone_screen_details, :tech_screen, :tech_screen_details, :take_home_challenge, :take_home_challenge_details, :onsite, :onsite_details, :whiteboarding, :whiteboarding_details, :negotiation_details, :company_id) end end From 242527099d57d1d5cb91bc6fd384ed3a02633f1b Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Thu, 7 Dec 2017 15:54:07 -0800 Subject: [PATCH 40/59] Add ability to search company by name --- app/controllers/searches_controller.rb | 3 ++- app/models/company.rb | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/searches_controller.rb b/app/controllers/searches_controller.rb index 1954795..8c43352 100644 --- a/app/controllers/searches_controller.rb +++ b/app/controllers/searches_controller.rb @@ -5,7 +5,8 @@ def index end def create - render json: PgSearch.multisearch(params[:searchInput]) + render json: Company.search_name(params[:searchInput]) + # render json: PgSearch.multisearch(params[:searchInput]) end def show diff --git a/app/models/company.rb b/app/models/company.rb index 6bae5b7..bec552d 100644 --- a/app/models/company.rb +++ b/app/models/company.rb @@ -3,6 +3,8 @@ class Company < ApplicationRecord has_many :interviewees, through: :interviews has_and_belongs_to_many :skills multisearchable against: [:name, :location, :website, :tech_field, :has_apprenticeship, :created_at, :updated_at] + pg_search_scope :search_name, :against => :name + def serializable_hash(options = nil) super({except: [:created_at, :updated_at]}.merge(options || {})) From e5c4578cc0ea4424702f45ebe8b9ab262a3f5363 Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Thu, 7 Dec 2017 21:24:21 -0800 Subject: [PATCH 41/59] company controller correction. --- app/controllers/companies_controller.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/controllers/companies_controller.rb b/app/controllers/companies_controller.rb index fd89ed9..62399d4 100644 --- a/app/controllers/companies_controller.rb +++ b/app/controllers/companies_controller.rb @@ -14,14 +14,9 @@ def create end def show -<<<<<<< HEAD - company = Company.find_by(id: params[:id]) - render json: company -======= company = Company.includes(:interviews, :skills, :interviewees).find_by_id(params[:id]) render json: company.json_with_association ->>>>>>> e9f00badf1c4182bbd9d5f91d74280d9faad339d end def update From d2c0b6dd73d47ecfefa58558e46917a88921dc06 Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Thu, 7 Dec 2017 23:18:52 -0800 Subject: [PATCH 42/59] Add seeds from real boots --- db/data.json | 1 + db/dbc_data.csv | 109 ++++++++++++++++++++++++++++++++++++++++++++++++ db/seeds.rb | 48 +++++++++++++++++++-- 3 files changed, 154 insertions(+), 4 deletions(-) create mode 100644 db/data.json create mode 100644 db/dbc_data.csv diff --git a/db/data.json b/db/data.json new file mode 100644 index 0000000..9e5522a --- /dev/null +++ b/db/data.json @@ -0,0 +1 @@ +[{"name":"Davis Bare","email":"davison.bare@gmail.com","company_name":"Datadog","position":"Solutions Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"it was described as \"could i go out for beer with this person?\" by the person who hired me","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"Had to set up your computer with their app, get everthing working and document it . took around 30 hours to complete","onsite":"no","onsite_details":null,"whiteboarding":"yes","whiteboarding_details":"was remote; Algorithms using hash/array iteration","negotiation_details":null,"notes":"6 interviews total, hardest part was the take home challenge for sure. Took the most time and effort"},{"name":"Earl Sabal","email":"earlsabal@gmail.com","company_name":"First Rebuplic Bank","position":"Full-Stack Developer","difficulty_rating":"2","experience_rating":"2","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"Asked about background, behavior, and why First Republic","tech_screen":"yes","tech_screen_details":"Was asked to talk about solving finding a word that is 7 letters, if you dropped the first letter is still an synonym of the original word, and the dropped letter is an abbreviation of an antonym fo the original word","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"A DBC Alumni got hired here"},{"name":"Joseph Huang","email":"huangx5j@gmail.com","company_name":"Nvidia","position":"AI Tech Support","difficulty_rating":"1","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Background, team dynamics","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"AI team is using python scripts"},{"name":"Youssef Kholeif ","email":"yykholeif@gmail.com","company_name":"Brainlabs Digital ","position":"Digital Marketing / Software Development graduate scheme","difficulty_rating":"2","experience_rating":"2","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":null,"tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"Presentation on anything of your choice","onsite":"yes","onsite_details":"Just long onsite day with 3 interviews, mixed between cultural and technical. Presentation of your choice, then ended with 4 mini aptitude tests","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"Amazing company culture and probably the top 3 in the world performance marketing agencies. Only downside was the aptitude test which I was not prepared for."},{"name":"Kaitlyn McPartland","email":"kmcp921@gmail.com","company_name":"Nordic Consulting Partner","position":"Senior Consultant","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Background with Epic software and previous projects","tech_screen":"yes","tech_screen_details":"Asked technical questions regarding Epic software - how to build certain features, process for troubleshooting specific technical errors","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":"I negotiate salary and travel per contract, negotiated less travel for most recent contract and slightly higher salary based on my valuation of my previous certifications","notes":"As of right now you can only work here as a consultant if you have Epic certifications - they might open up to include Cerner and Meditech in the future"},{"name":"Rio Nose","email":"rnose512@gmail.com","company_name":"Smart Sparrow","position":"Junior Learning Engineer","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Basic background, experience, and more info about the company","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"I had to build a science simulation in JavaScript","onsite":"yes","onsite_details":"I interviewed with 4 people, built chess with OOP, explained how I deal with project management","whiteboarding":"yes","whiteboarding_details":"Build chess using OOP concepts","negotiation_details":"I received written offer, I negotiated saying how much other students were getting, they upped the offer 8k","notes":"Awesome company doing awesome things, with cool people. Will find out more when I start next week."},{"name":"Kayden Maier","email":"kaydenmaier7@gmail.com","company_name":"Ellie Mae","position":"Technical Support ","difficulty_rating":"1","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Background and basic troubleshooting questions","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"1 onsite 5 people one whiteboarding","whiteboarding":"yes","whiteboarding_details":"Is this string a Palindrome","negotiation_details":"They started at 63 I got them up to 70 + overtime and bonus","notes":"Best company I have ever worked for. Highly Highly recommend!!!!"},{"name":"Ransom Byers","email":"ransom.byers@gmail.com","company_name":"Pivotal","position":"Software Engineer: CloudFoundry","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"Basic background and interests","tech_screen":"yes","tech_screen_details":"They have a standard interview called the RPI (Rob's Pairing Interview) that is perfectly suited to DBC grads.","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"A full day of pairing on one or two projects real projects.","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"Cloudfoundry is much more technically challenging to apply for than Labs, but the San Francisco Labs office is being deliberately shrunk (IPO related financial decisions). The best bet for a recent DBC grad is to apply for a Labs position in any other city."},{"name":"Mark de Dios","email":"mhdedios@gmail.com","company_name":"Computershare","position":"Web Developer","difficulty_rating":"1","experience_rating":"1","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"no","phonescreen_details":"Simply checking for alignment of the job spec and the interviewee's past exp and ideals for future work","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"A couple questions from the engineers about making SQL queries, using an ORM, using a CMS e.g. Wordpress","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"Conservative company with unpredictable, recursive responsibilities that do not get automatd. The PM threw a very condescending comment about the difference between a full stack engineer and software engineer. 10/10 would not rec"},{"name":"George C","email":null,"company_name":"yeti co","position":"Front-End Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"Basic Culture fit/background questions","tech_screen":"no","tech_screen_details":"They Did not have one","take_home_challenge":"yes","take_home_challenge_details":"1 data manipulation (find this data in an array)15min ...1 recursive algorithm 20min....1 dom manipulation(jqueary allowed) 25min... must use es2015","onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"Culture seemed great, Jam room, VR area, free food days"},{"name":"Zara Aslam","email":"zaslam72@gmail.com","company_name":"OneSignal","position":"Software Engineer (w/ 40% Support Eng)","difficulty_rating":"1","experience_rating":"2","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"Standard background -- how coding? Projects?","tech_screen":"yes","tech_screen_details":"1 hour timed coding challenge as technical phone screen -- Use HTML5 geolocation and weather API to display a user's local weather","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":"Engineering team comprised of all men. I think they were about to hire 1 female engineer but she was still in the interviewing phase. (this was back in January tho)"},{"name":"anon","email":"n/a","company_name":"Ginger Labs","position":"QA Engineer","difficulty_rating":"1","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Basic getting to know you questions","tech_screen":"yes","tech_screen_details":"Coding challenge over Google Docs, basic coding comprehension algos","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"2 onsite interviews, more technical questions, writing bug reports, solving a couple real problems the company encountered","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"Great company"},{"name":"Nestor Ceron","email":"nestor_ceron@yahoo.com","company_name":"Adobe","position":"Build \u0026 Release Engineer","difficulty_rating":"1","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Covered background and exerience. Went deep into how i came around to solve problems that i had in previous jobs","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"I was interview buy the whole team that I am currently working with along with the manager. More basic background questions and some technical.","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"Great company culture."},{"name":"Frida Sjöholm","email":"fridacarolinasjoholm@gmail.com","company_name":"Apartment List","position":"Web Developer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Tell us your background, interests and recent projects","tech_screen":"yes","tech_screen_details":"Iterating on the take home challenge, creating new features","take_home_challenge":"yes","take_home_challenge_details":"I was given two days to complete a email design with tracking, styling and tests","onsite":"yes","onsite_details":"Meeting with 5 different parts of the team for different parts of the interview, mainly technincal but some q's about fit","whiteboarding":"yes","whiteboarding_details":"Algorithm","negotiation_details":null,"notes":"Great experience, great company!"},{"name":"Rio Nose","email":"rnose512@gmail.com","company_name":"HelloSign","position":"Full Stack Software Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"Asked if I know what inner join is, if I know PHP","tech_screen":"yes","tech_screen_details":"Asked about indexing, caching","take_home_challenge":"yes","take_home_challenge_details":"Use HelloSign API","onsite":"yes","onsite_details":"Code reviews, schema design, SQL queries, HTTP verbs","whiteboarding":"yes","whiteboarding_details":"schema designs","negotiation_details":null,"notes":"HelloSign is an amazing company. I worked there previously. Recruiter and engineering manager called me to let me know that they didn't have the resources to make sure I had good support and mentoring as a junior so they couldn't hire me at the time. Very positive experience and friendly people as I remembered. 10/10 would recommend working at this company. Best place I've worked so far."},{"name":"anon","email":"n/a","company_name":"Mapbox","position":"Support Engineer ","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"no","phonescreen_details":null,"tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":null,"onsite":"yes","onsite_details":"My onsite was two full days at Mapbox. I was tasked with a project (which I worked on with others on my team) and spent my additional time meeting with others in the company for show and tells. At the end of my time, I presented my findings. ","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"I absolutely love working at Mapbox. I love going to work every single day. We are hiring! Check our job board! "},{"name":"Mike Tarkington","email":"tarkmike@gmail.com","company_name":"Datadog","position":"Solutions Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Asked about my background, goals, why I wanted the position. Told me about the role and the take home assignment challenge.","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"I was given a week to complete a challenge with a very specific set of instructions on how to use the Datadog platform as if I were a client developer. The challenge involved very basic usage of Python, creation of a Linux virtual machine, creating a small app that could be monitored by the Datadog agent. There was a lot of technical writing for step by step explanation of the process and statistal results.","onsite":"yes","onsite_details":"My main interviews were not onsite because the role is remote but I met with 5 people over the course of 2.5 hours using video conferencing software. It started with two pairs of engineers on the team, one being a team lead and the other being a senior Solutions Engineer. The discussion with the pairs was not very technical but we did touch on a few topics in the natural flow of conversation. We were mostly getting to know eachother and I told them about my background and specifically how past experiences yielded transferable skills into this role. The final step was a 1 hour techincal challenge with a senior software engineer.","whiteboarding":"yes","whiteboarding_details":"The main challenge was over a shared code editor with compiler. It involved a problem similar to the Roman Numerals challenge. After solving the initial problem, there was a technical discussion about alorithm time and space complexity, edge cases, test driven development, and error handling. It's important to solve the problem but even more important to be able to talk your way through the solution and then demonstrate knowledge of fundamental computer science concepts and software development conventions.","negotiation_details":null,"notes":"I know other people have had varying rates of progress for their interview timeline, but it's worth mentioning that it took about two months with a lot of delays. That said, it was the holiday season and there were some major events taking place in the company. Just don't be surprised if you need to be a little patient. Everyone I met was very friendly and professional. Overall great experience and I'm thrilled to work with them!"},{"name":"Rebecca Orr","email":"rreorr@gmail.com","company_name":"Eaze","position":"Software Engineer","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Behavioral","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"Build a gif searching app using the giphy api","onsite":"yes","onsite_details":"1 onsite, 4 1 hour interviews. 2 technical, 1 product/ux, 1 beahvioral/cultural","whiteboarding":"yes","whiteboarding_details":"Build out the flow for a school election system (everyone can vote once for each position (pres, vp, secretary, etc)). After basic crudflow diagramed, asked to whiteboard networking calls using callbacks. Other technical was a comprehensive ask about iOS/cocoa/architecure and design patterns","negotiation_details":null,"notes":"I love working at Eaze. Please reach out if you're interested, we're hiring! Looking for node/react peeps."},{"name":"Robert Turner","email":"georob23@gmail.com","company_name":"Fugro","position":"Software Engineer","difficulty_rating":"1","experience_rating":"2","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"no","phonescreen_details":null,"tech_screen":"no","tech_screen_details":null,"take_home_challenge":null,"take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"I returned to the company I left for DBC, thus my lack of interviews, etc.This company does not know how to handle tech unfortunately and I wouldn't recommend working here. I'll be moving on before too long."},{"name":"Jaime Rios","email":"jaimejrios1@gmail.com","company_name":"IncreaseLife LLC","position":"CTO","difficulty_rating":"3","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"In-depth questions about success mindset practices","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"It was a great culture fit, CEO and I were vibing.","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"I was sold"},{"name":"Alex Carroll","email":"lex.ac1@gmail.com","company_name":"Recurly","position":"Support Engineer ","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Basic background and Experience ","tech_screen":"yes","tech_screen_details":"4 algorithms and some SQL questons","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"1 onsite, 5 people, whiteboarding, sql reading challenge, background fit","whiteboarding":"yes","whiteboarding_details":null,"negotiation_details":"Witheld my desired number at each interview and got initial offer that fit my number and accepted. Got a call when the written offer was ready to sign that they raised the offer 10%. Recurly is great to work for.","notes":"Know the position day to day activities. Look it up if you dont know. Also be ready to piviot on the position if you can. Just get in and take the experiance and skip the interview grind. The initial position I was interviewed for went to another person, but I was able to piviot because I was open from the get go. Also did 3 months of grinding after camp to prep for interview with algos and projects and it paid off."},{"name":"Yaritza Perez","email":"yaritzape9@gmail.com","company_name":"uber","position":"Apprenticship","difficulty_rating":"2","experience_rating":"2","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"Discussed knowlege and when through and algorithm","tech_screen":"yes","tech_screen_details":"basic javascript iterating through arrays","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"let you know about it later"},{"name":"Dharini Murugaprabhu","email":"dharinishree@gmail.com","company_name":"Gobalto Inc","position":"Full-Stack Developer","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Solved Logic puzzle and general conversation about experience","tech_screen":"yes","tech_screen_details":"Algorithm code challenge and new logic puzzles","take_home_challenge":"yes","take_home_challenge_details":"Full stack app development using Rails and JS, focused on front-end","onsite":"yes","onsite_details":"Three rounds of technical inteview and chat with CEO","whiteboarding":"yes","whiteboarding_details":"Basic JS, Rails joins, DB schema","negotiation_details":null,"notes":null},{"name":"Katie O'Neill","email":"katiemarieoneill@gmail.com","company_name":"LinkedIn","position":"Software Engineer Apprentice","difficulty_rating":"1","experience_rating":"2","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"no","phonescreen_details":null,"tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"We were provided an API with a word list and needed to create a hangman word game. They were very open to creativity and we could create the game as a web app, mobile app, or command line app.","onsite":"yes","onsite_details":"There was a one hour culture fit interview and a two hour technical interview. In the tech interview we presented our take home challenge and then coded extra features on the spot as requested by the interviewers.","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Benjamin Acevedo","email":"bacevedo@gmail.com","company_name":"NetGear","position":"Brand Manager of E-Sports","difficulty_rating":"1","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"no","phonescreen_details":"Did not have a phone screen.","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"Two soft interviews. One with the team discussing e-sports and the brand opportunities. The second with the SVP's of product and markeiting and talked about plans and roadmap for the next year.","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"NetGear hires everyone on a contract basis for the first 30-90 days. Much of their roles are filled from within. They promote from within regularly."},{"name":"Kayden Maier","email":"kaydenmaier7@gmail.com","company_name":"Interana","position":"Support Engineer ","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Backround info and programing problem i've solved","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"1 on site 5 interviews one of which was Whiteboarding","whiteboarding":"yes","whiteboarding_details":"Is this string a Palindrome","negotiation_details":"they offered 90 I wanted 100 we met at 96","notes":"Not a great company for a first time job in Tech. They need someone with a few years experience"},{"name":"Robbie Santos","email":"robbiealixsantos@gmail.com","company_name":"Smith","position":"Software Engineer","difficulty_rating":"1","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"no","phonescreen_details":null,"tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"Our acquiring company, Porch, is in Seattle and the Smith team is located in Sunnyvale. Having the support of a bigger organization while being able to hang on to that start-up-move-fast environment is great. I am very thankful for this opportunity to work as a legit full stack developer"},{"name":"Vilde Vevatne","email":"vilde@vevatne.no","company_name":"Pinterest","position":"Software Engineer, Apprentice","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"no","phonescreen_details":null,"tech_screen":"yes","tech_screen_details":"Talked about my coding experience and background and solved an algorithm.","take_home_challenge":"yes","take_home_challenge_details":"Build a Pinterest clone with infinite scrolling and treating a given json object as an API response.","onsite":"yes","onsite_details":"3 technical interviews. Being asked to solve tightly scoped problems that were highly applicable to the actual job. Had a lunch with an employee to evaluate culture fit.","whiteboarding":"yes","whiteboarding_details":"Find pinnable images on any given webpage. Iterate through an object and returning information.","negotiation_details":null,"notes":"Pinterest is in many ways a great company, however the apprenticeship could be better structured. "},{"name":"Jay Naidu","email":"j_hawx@yahoo.com","company_name":"Cruise Automation","position":"Autonomous Vehicle Trainer","difficulty_rating":"1","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Asked what I know about the company, why I would be a good fit","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"2 interviews; first was about my prior work experience and education, second had behavioral questions","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"Relatively new company (purchased by General Motors last year), great workplace culture, conveniently located near me, working with self-driving cars"},{"name":"Jessica Forchione","email":"jsforchione@gmail.com","company_name":"Salesforce","position":"Demo Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"General convo about experience, why I wanted the job, etc.","tech_screen":"yes","tech_screen_details":"Multiple choice test on coding questions","take_home_challenge":"yes","take_home_challenge_details":"cannot provide details","onsite":"yes","onsite_details":"Culture, skills, presentation","whiteboarding":"yes","whiteboarding_details":null,"negotiation_details":null,"notes":"Salesforce is amazing! "},{"name":"Chester Hoang","email":"ChesterLHoang@gmail.com","company_name":"Haystack TV","position":"Software Engineer","difficulty_rating":"2","experience_rating":"1","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Architectural UI questions. What to watchout for when building a web app.","tech_screen":"yes","tech_screen_details":"Algorithm Question. Stairs","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"Met with 3 people. SQL Queries, HTML/CSS Architecture, Big(O)","whiteboarding":"yes","whiteboarding_details":null,"negotiation_details":"Couldn't negotiate Salary, but received more equity.","notes":"Startup Culture is important. Make sure you ask about it during the interview process."},{"name":"Ellie Bahadori","email":null,"company_name":"Stitch Fix","position":"Junior Software Engineer","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Standard phone screen, looking for culture fit, engagement about company, etc.","tech_screen":"no","tech_screen_details":"There was a product phone screen, which involved being given a business problem and brainstorming ways to solve it","take_home_challenge":"yes","take_home_challenge_details":"Smaller version of real code in production, asked to add some features with test coverage","onsite":"yes","onsite_details":"4-5 interviews, which included pair programming, a technical exercise, meeting with business partners, engineer leadership, etc.","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":"Strong initial offer, did not negotiate","notes":"Stitch Fix is incredible. Everyone is willing to share knowledge, and you're surrounded by people who are brilliant at what they do. Amazing leadership, strong engineers, and an astoundingly positive work culture."},{"name":"anon","email":"n/a","company_name":"Google","position":"Software Engineer - Machine Learning","difficulty_rating":"1","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Standard Google Questions","tech_screen":"yes","tech_screen_details":"Boltzmann Machine Explanation","take_home_challenge":"yes","take_home_challenge_details":null,"onsite":"yes","onsite_details":"Standard machine learning questions, beginning with naive bayes classifiers, discussion regarding tensor flow, neural networks and NLP.","whiteboarding":"yes","whiteboarding_details":null,"negotiation_details":"130k + 50k sign on bonus + 80k in stock - negotiated vs Microsoft Salary","notes":"Study hard"},{"name":"Hayden Langelier","email":"hlangelier@utexas.edu","company_name":"SiteTraker","position":"Sales Engineer","difficulty_rating":"1","experience_rating":"2","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Get to know me and wanted to know about my dev experience","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"I interviewed with the CTO/Cofounder about my interest in the company, my background, my programming skills, interest in salesforce","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":"They offered more than i asked for","notes":"Study up on salesforce, apex, and javascript"},{"name":"Joe Hiner","email":"JoeHinerIV@gmail.com","company_name":"Cruise Automation","position":"Vehicle Technician","difficulty_rating":"1","experience_rating":"3","referred":"no","received_offer":null,"accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"background, expectations. second phone interview including technical questions","tech_screen":"yes","tech_screen_details":"Automotive focus. Some cultural/behavioral questions","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"Met ~4 people on the immediate location staff and had 1 heavily technical interview over the phone.","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":"I was urged to began the negotiation process with a base salary number. Their offer was about 95% of that base salary which I accepted.","notes":"Super cool company. Very happy. Thank you DBC! Thank you SarSar!"},{"name":"Dominique Crowther","email":"Dominique.Crowther@gmail.com","company_name":"JP Morgan Chase","position":"Front End Engineer","difficulty_rating":"2","experience_rating":"1","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"no","phonescreen_details":null,"tech_screen":"yes","tech_screen_details":"Asked to talk about one of my projects then some technical Javascript questions involving Promises and higher-order functions","take_home_challenge":"yes","take_home_challenge_details":"Had 2 hours to solve a few algorithms in whatever language you wanted","onsite":"no","onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":"Technical Interviewer seemed stressed about something and checked out. It was very off-putting."},{"name":"anon","email":"n/a","company_name":"First Republic Bank","position":"Full-Stack Developer","difficulty_rating":"1","experience_rating":"1","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"General conversation \u0026 basic scripting question","tech_screen":"yes","tech_screen_details":"String parsing question","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"Cultural fit, basic coding","whiteboarding":null,"whiteboarding_details":"Implement left join, Monadic SQL Parser, using a dictionary to find the most popular word","negotiation_details":null,"notes":"Terrible company, seems to be chaotic, clear lack of direction."},{"name":"anon","email":"n/a","company_name":"Jaguar Design Studio","position":"Junior Software Engineer","difficulty_rating":"1","experience_rating":"1","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"General conversation \u0026 basic scripting question","tech_screen":"yes","tech_screen_details":"A couple simple coding questions","take_home_challenge":"yes","take_home_challenge_details":"You had to find the challenge in the js console to solve the challenge. This was super fun.","onsite":"yes","onsite_details":"Only with the CEO of company (super small company)","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":"Negotiated from small amount to slightly bigger, small amount","notes":"Terrible experience, terrible company, pay scale not worth the trouble. Highly do not recommend."},{"name":"Chinmay Banker","email":"chinmaybanker@yahoo.com","company_name":"Skillz","position":"Ruby on Rails Engineer","difficulty_rating":"2","experience_rating":"1","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"Introductory - \"Tell us about yourself\", \"have you heard about us?\", \"do you know what we do?\"","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"2 rounds - 1 technicsal, 1 with CEO","whiteboarding":"yes","whiteboarding_details":"Draw database schemas, explain how servers and clients communicate, what do JSON properties look like, server requests and their contents, how do servers handle excessive requests, how can you scale DBs. On computer, was asked to create a rails app simulating a pet shelter - 45 mins, googling was allowed.","negotiation_details":null,"notes":"The company has a great product, the teams that i interviewed with were great as well. However, my interview with the CEO left a bad taste in my mouth. He spoke as if he did not believe bootcamp grads deserve an opportunity. Very condescening and rude from the moment i sat down. I would not have accepted an offer even if i got one because after the CEO interview I had doubts about his leadership qualities."},{"name":"anon","email":"n/a","company_name":"Planet","position":"Software Engineer","difficulty_rating":"2","experience_rating":"1","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Only technical phone screen (see next tab)","tech_screen":"yes","tech_screen_details":"Questions about API design, HTTP, request/response and networking, Linux scripting","take_home_challenge":"yes","take_home_challenge_details":"Given a set of constraints, build an API service. Design details intentionally left open to evaluate the candidate's design decisions.","onsite":"yes","onsite_details":"~4 hours interviewing with team members with technical (programming and design) and behavioral questions.","whiteboarding":"yes","whiteboarding_details":"A data manipulation and storage exercise.","negotiation_details":null,"notes":"The interview process was positive. However, I can't say the same thing about the work environment. They claim a culture of diversity, inclusion and empathy, as well as a humanitarian-oriented mission, but while working there I experienced a toxic environment, a complete lack of transparency from management and no real engagement in doing good for the Earth."},{"name":"Renan Souza","email":"renanbarbosadesouza@gmail.com","company_name":"New Story Charity","position":"Full Stack Web Developer","difficulty_rating":"1","experience_rating":"3","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"no","phonescreen_details":null,"tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"The interview was made through video skype and we talked about my skills and what the company needed. After they showed my two projects one easy and one a little hard to choose and I select the most challenging one and explained how I would make the app"},{"name":"Jen Young","email":"jyoung488@gmail.com","company_name":"HelloSign","position":"API Support Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"with recruiter, basic background questions, basic API knowledge","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"2 rounds of onsite interviews: First interview was 4 hours with recruiter and 4 other people with some technical questions; 2nd interview with COO, CEO, hiring manager and recruiter again","whiteboarding":"yes","whiteboarding_details":"Talked through the game of life problem and drew out some diagrams but didn't actually solve the problem, basic API calls in cURL, reverse string","negotiation_details":"I negotiated with the VP who was a freaking shark and would not recommend going up against her again","notes":"the process was quick once we both realized how well i fit into the company"},{"name":"Jennifer Shopsin","email":"jennifer.shopsin@gmail.com","company_name":"Autodesk","position":"Software Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Cultural fit, asked about who I would give as a reference, what they would rate me from 1 to 10 and why","tech_screen":"yes","tech_screen_details":"Review a project of your choice and add a feature together with the interviewer, I did not complete the added feature, but did show understanding of Rails, React and JS","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"1 cultural fit interview with hiring manger and 2 technical interviews","whiteboarding":"yes","whiteboarding_details":"Given a nested hash or object, output a string of html based on the value of each key","negotiation_details":"Negotiated slightly higher salary after explanation of my added value from my background","notes":"They moved incredibly quickly (1 week turnaround, plus 1 week offer deadline) I felt that they really valued my time and were extremely pleasant throughout the process. There are even 3 other DBC grads in my team."},{"name":"Amber Nash","email":"nash.beram@gmail.com","company_name":"Datadog","position":"Technical Support Engineer","difficulty_rating":"1","experience_rating":"2","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":null,"phonescreen_details":"Simple personality check","tech_screen":"no","tech_screen_details":"No phone tech screen","take_home_challenge":"yes","take_home_challenge_details":"Utilizing Datadog interface, command line heavy, fairly simple save for running into bugs.","onsite":"yes","onsite_details":"2 interviews with two people in each. Focussing on your experience/why you think you'd be a good fit.","whiteboarding":"yes","whiteboarding_details":"Was remote - As a woman, my interviewer was changed to a woman outside of what would have been my team with higher standards, and a request for a more complex output than my male counterparts. Completed a data structure problem with some guidance, but failed the interview.","negotiation_details":null,"notes":"They were really nice. While their treatment of women is shaky, I think they'd be a good company to work for."},{"name":"Andrea Scott","email":"andreahaleyscott@gmail.com","company_name":"Twilio","position":"Solutions Lead, Sales Systems","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Personality check, pretty minimal because I was a referral from the hiring manager.","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"My takehome challenge was a product-management case study, not a coding challenge. It was challenging, but not terrible.","onsite":"yes","onsite_details":"I did two on-site interviews: one to present my case study, and another that was about 4 hours of interviews with team members and key stakeholders.","whiteboarding":"yes","whiteboarding_details":"Whiteboarding to describe a data model and potential solution to a business use case.","negotiation_details":"Negotiated a larger RSU grant than was offered.","notes":"This company is really amazing and was incredibly transparent during the hiring process. It may have been easier for me since I was referred by the person who is now my boss."},{"name":"Hawken Ritter","email":"hawkenritter@gmail.com","company_name":"PwC ","position":"Consultant, Technology and Software Sector","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Standard background and behavior questions","tech_screen":"yes","tech_screen_details":"Questions about DCF Models, Leveraged Buy outs, technical accounting etc... ","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"3 rounds of in person. 1 at hotel, 1 on-campus(at school), final in the office","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":"Very corporate culture. Understand the benefits and limitations that entails. "},{"name":"Angela Rivera","email":"rvra.angela@gmail.com","company_name":"Adobe","position":"Software Engineer","difficulty_rating":"1","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Discuss existing knowledge re: data science algos","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"Existing knowledge of market, behavioral questions","whiteboarding":"yes","whiteboarding_details":"K Means Clustering","negotiation_details":null,"notes":"Will update with more notes at a later time! "},{"name":"anon","email":"n/a","company_name":"Microsoft","position":"Software Engineer - Machine Learning","difficulty_rating":"1","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"no","phone_screen":"yes","phonescreen_details":"Standard Microsoft Questions","tech_screen":"yes","tech_screen_details":"Neural network discussion, feature selection and training design","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"Interviewed in Washington. Standard machine learning interview.","whiteboarding":"yes","whiteboarding_details":null,"negotiation_details":"125k + 30k sign on bonus + 100k in stock","notes":null},{"name":"Sean Lee","email":"seanboramlee@gmail.com","company_name":"Fetch","position":"Software Engineer","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Mostly cultural and standard background.","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"Build a rich media animated banner","onsite":"yes","onsite_details":"Not technical. Cultural and product oriented.","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":"80k offer. Countered with 90. Settled at 85k.","notes":null},{"name":"Zara Aslam","email":"zaslam72@gmail.com","company_name":"LinkedIn","position":"Apprenticeship","difficulty_rating":"1","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"no","phonescreen_details":null,"tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"Create a hangman game that uses their API on any framework web/mobile/command-line","onsite":"yes","onsite_details":"3 hours of interview (2 hour technical 1 hour nontechnical) and lunch/welcome speech. The technical portion included me talking about my hangman solution + implementing a new feature","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":"Apprenticeship-wide set hourly wage","notes":null},{"name":"Sam Parker","email":"sam@samgparker.com","company_name":"RichRelevance","position":"Technical Support Engineer","difficulty_rating":"1","experience_rating":"3","referred":"yes","received_offer":null,"accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Cultural and standard background","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"FizzBuzz, basic HTML CSS and JavaScript DOM manipulation","onsite":"yes","onsite_details":"~4 hours. Some logic puzzles and more background/culture","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":"First offer was ~10K under what I said was a min acceptable. Negotiated up to min acceptable. Should not have given a min acceptable in the first place :| might have been able to get another 5-10K I believe.","notes":null},{"name":"Katee Trant","email":"katee.trant@gmail.com","company_name":"Shyp","position":"Jr Platform Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Background and behavioral","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"Met with entire team (5 people) individually for 1 hour each. Sql questions, interacting with 3rd party APIs, walkthrough of past project, design question, building out an enpoint","whiteboarding":"yes","whiteboarding_details":"Build an endpoint, including sql queries for a modal to display when weather impacts shipping. This should only display once per customer for each event.","negotiation_details":"I was given an amazing first offer... no need to negotiate","notes":null},{"name":"anon","email":"n/a","company_name":"Box","position":"Demo Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"no","phone_screen":"yes","phonescreen_details":"Mostly background questions","tech_screen":"yes","tech_screen_details":"Technical Convo about past projects","take_home_challenge":"yes","take_home_challenge_details":"Build an app using their api. It was relatively straight-forward","onsite":"yes","onsite_details":"Cultural fit questions, as well as project questions","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":"Just got the offer, will negotiate after interview at second company tomorrow","notes":null},{"name":"Jay Tsukano","email":"jaytsukano@gmail.com","company_name":"ILWU-PMA Benefit Plans Office","position":null,"difficulty_rating":"1","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"no","phonescreen_details":null,"tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":"Negotiated for a higher salary but settle with their explanation to why they couldn't. I will be given a review again in a few months to re-evaluate my compensation.","notes":null},{"name":"Chinmay Banker","email":"chinmaybanker@yahoo.com","company_name":"ReliaMax","position":"Software Engineer","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Introductory phone call, \"what are you looking for\" etc.","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"Create a single-page application using Node.js, Vue.js, MongoDB and Express","onsite":"yes","onsite_details":"2 rounds - 1 technical, 1 team dynamics","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":"Negotiated to a higher number than originally offered.","notes":null},{"name":"Angela Marshall","email":"hello@angelasmarshall.com","company_name":"Sincerely","position":"Web Engineer","difficulty_rating":"1","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Answered general questions about myself/my background and learned more about the company.","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"They pitched an issue to me and I had to create an app with my personal solution using a JS framework of my choice. ","onsite":"yes","onsite_details":"3 rounds - Mostly revolved around cultural fit and basic coding knowledge (they saw my work for the take home challenge and we discussed that as well)","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":"Negotiated to a higher number than the original offer. ","notes":null},{"name":"Filmon Mengisteab","email":"filmon.mengisteab@yahoo.com","company_name":"Adobe","position":"Software Engineer","difficulty_rating":"1","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"background, expectations, including technical questions","tech_screen":null,"tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"Questions to see how I can fit","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":"No","notes":null},{"name":"Antonio Saric","email":"antoniosaric@hotmail.com","company_name":"Level Play Sports","position":"Lead Web Developer","difficulty_rating":"1","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Basic Background and Experience","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":"Non-Negotiable Salary","notes":null},{"name":"Marty McLaughlin","email":"martymclaugh@gmail.com","company_name":"Fandor","position":"Software Engineer","difficulty_rating":"1","experience_rating":"2","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"no","phonescreen_details":"I was already working as Customer Service/QA","tech_screen":"no","tech_screen_details":"I was already working as Customer Service/QA","take_home_challenge":"yes","take_home_challenge_details":"rebuild their most difficult page using a json file and whatever tech I wanted","onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":"yes and it didn't work.","notes":null},{"name":"Nicholas Davidson","email":"nick@nickdavidson.io","company_name":"RichRelevance","position":"Integration Engineer","difficulty_rating":"1","experience_rating":"3","referred":"yes","received_offer":null,"accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"2 phone screens: First, HR, genral background, introductory. Second, Hiring Manager, team/job specifcs","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"6 problems including HTML, CSS, JavaScript, and JSON","onsite":"yes","onsite_details":"I met with four different people, all from my current team to discuss background, bahvioral questions, and the results from my take home challenge","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":"Yes, tried to negiotiate. Offer was more than fair, researched and presented case for an additional 5k; I was unsuccessful, but it was more than ok, because the offer was great to begin with, but you always have to try!","notes":null},{"name":"Georgia Rust","email":"georgia.rust@gmail.com","company_name":"RichRelevance","position":"Consultant","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Hiring manager guaging personality ","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":null,"whiteboarding":"yes","whiteboarding_details":"Algorithms","negotiation_details":null,"notes":null},{"name":"Laura Reynolds","email":"lr.rnlds@gmail.com","company_name":"Credit Karma","position":"Software Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Basic \"get to know you\" questions","tech_screen":"yes","tech_screen_details":"Create a method to manipulate different data structures.","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"3 rounds of interviewsl 2 technical, 1 more fit","whiteboarding":"yes","whiteboarding_details":"Algorithms; Classes and Inheritance","negotiation_details":null,"notes":null},{"name":"Jen Young","email":"jyoung488@gmail.com","company_name":"Hired","position":"Technical Support Engineer","difficulty_rating":"2","experience_rating":"1","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"Recruiter reached out to me, basic background questions","tech_screen":"yes","tech_screen_details":"Coding challenge over coderpad, focused on efficiency","take_home_challenge":"yes","take_home_challenge_details":"Addressing bugs in a RoR app and refactoring, they did not care about the outcome of this challenge and scheduled an onsite right away","onsite":"yes","onsite_details":"meet and greets with some engineers and 3 technical interviews and lunch","whiteboarding":"yes","whiteboarding_details":"Coded Battleship with an engineer asking \"Is that how you do it?\" every 5 minutes","negotiation_details":null,"notes":null},{"name":"anon","email":"n/a","company_name":"Touch of Modern","position":"Ruby on Rails Engineer","difficulty_rating":"2","experience_rating":"2","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"1st round was pretty standard behavioral, 2nd round was a phone screen with the director of engineering.","tech_screen":"yes","tech_screen_details":"Ruby on Rails database access methods, implementing a cache, system design, checking for duplicates in a string.","take_home_challenge":"yes","take_home_challenge_details":"Determing whether Cuboids overlapped using Ruby. ","onsite":"yes","onsite_details":"Panel interviews, you'll meet everyone on the team. ","whiteboarding":"yes","whiteboarding_details":"Counter clockwise matrix rotation. System design without a database.","negotiation_details":null,"notes":null},{"name":"Eric Yang","email":"ericyang321@gmail.com","company_name":"Scribd","position":"Frontend Engineer","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Basic background and Experience ","tech_screen":"yes","tech_screen_details":"DOM manipulation knowledge, and React stuff","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"1 onsite, 5 people, whiteboarding","whiteboarding":"yes","whiteboarding_details":"Find most commonly appearing words, and create a summary of an article","negotiation_details":null,"notes":null},{"name":"Dawson Graham","email":"hdawsong@gmail.com","company_name":"Google","position":"Software Engineer - Tools \u0026 Infrastructure","difficulty_rating":"2","experience_rating":"2","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"General conversation around experience, goals, culture fit, etc","tech_screen":"yes","tech_screen_details":"Not as difficult of problems as I had expected from Google. Biggest piece of advice: KNOW THE TREES (BST, Heaps, Tries are most popular)","take_home_challenge":"no","take_home_challenge_details":"I completed a take-home challenge for StitchFix in a separate application. It was for a QA Automation role so they had me fix incorrect test specs in the web app they sent over, implement new tests, and add a new feature (with tests) to the sample web app. The app just took submission of an excel file with items and associated prices, then did simple stuff with it.","onsite":"no","onsite_details":"Did an onsite for Skillz in separate application. 45 minutes to build a sample animal shelter CRUD app with 3-4 separate pages, about 4-5 use cases, and the computer they provide you doesn't have autosave enabled in sublime :(","whiteboarding":"no","whiteboarding_details":"Highly suggest App Academy's 10X program. I took it over the month of October and every single day we practiced whiteboarding in front of others. Any questions or confusion about Big O regarding time and space complexities will be completely satisfied and easily understood by the end. They drill in great algorithm optimization techniques to increase performance (reduce Big O) and they also provide a great high-level view of what's going on outside of just the code, and how programs, machines, and network/internet connect and work full circle.","negotiation_details":null,"notes":null},{"name":"Ibraheem Abdul-Malik","email":"hi@ibraheem.com","company_name":"LinkedIn","position":"Software Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"no","phonescreen_details":null,"tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"Build a hangman game in any language using a REST API","onsite":"yes","onsite_details":"2 hours technical, 1 hour cultural","whiteboarding":"no","whiteboarding_details":"Live coding of the coding challenge including bug fixes and adding features","negotiation_details":null,"notes":null},{"name":"Govind Rai","email":"raigovind93@gmail.com","company_name":"Proteus Digital Health","position":"Software Engineer, Backend","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":null,"accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"background, projects, and technical questionairre (recuriter was engineer herself)","tech_screen":"yes","tech_screen_details":"Questions about Node.js, JavaScript, NoSQL vs SQL, Cloud Services","take_home_challenge":"no","take_home_challenge_details":"You can have a take home, but I opted in an over the phone challenge vs take home","onsite":"yes","onsite_details":"~4 hours. Interviewed with 7 individuals. Very positive experience. Very nice, smart people. Company is doing super hot.","whiteboarding":"yes","whiteboarding_details":"Map out an contrived api (i.e. a weight scale that is linked to the cloud and what a potential api could look like)","negotiation_details":null,"notes":null},{"name":"Mike Tsou","email":"mikeytsou@gmail.com","company_name":"JP Morgan Chase","position":"Front-end Engineer","difficulty_rating":"2","experience_rating":"2","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"no","phonescreen_details":null,"tech_screen":"yes","tech_screen_details":"Three questions about event listeners, enumerating through a data structure, and using fetch","take_home_challenge":"yes","take_home_challenge_details":"Online coding challenge with two algorithms you must solve in 90 minutes each","onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Leah Keilty","email":"lskeilty@gmail.com","company_name":"Chartio","position":"Success Engineer","difficulty_rating":"1","experience_rating":"3","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"General background information \u0026 role details","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"Take a dataset and create some data visualization to go along with the data set","onsite":"yes","onsite_details":"Whiteboard challenge, two rounds of interviews, lunch, and 30 min of me 'teaching' the team something","whiteboarding":"yes","whiteboarding_details":"SQL questions","negotiation_details":null,"notes":null},{"name":"Aidan Legaspi","email":"aidanlegaspi1@gmail.com","company_name":"Autodesk","position":"UI Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"no","phone_screen":"yes","phonescreen_details":"Background and behavioral","tech_screen":"yes","tech_screen_details":"Google hangout with two Sr. Eng. to review take home assignment.","take_home_challenge":"yes","take_home_challenge_details":"From the UX wireframes provided build this thing and discuss approach","onsite":"yes","onsite_details":"3hrs. Met with lead product designer, principle UX architect, Sr. QA manager and Hiring Manager. Experience was really good. I was great to see so many facinating products that are designed with autodesk software.","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"anon","email":"n/a","company_name":"Stitch Fix","position":"Software Engineer","difficulty_rating":"3","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Solving a business problem ","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"Add features to an existing app.","onsite":"yes","onsite_details":"Cultural fit, technical challenge, refactor take home project","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Jennifer Shopsin","email":"jennifer.shopsin@gmail.com","company_name":"Box","position":"Software Engineer, WebApp","difficulty_rating":"3","experience_rating":"3","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"Cultural Fit, basic get to know you questions","tech_screen":"yes","tech_screen_details":"asked about a JS callback function, given code with a function call and it's expected output, right the code to make the given calls work as expected","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"Very long, 4 seperate interviews + lunch, 1 cultural fit interview with manager discussing a project and the group dynamics, 1 data structures algorithm question, 1 html + css challenge, and a 2 hour coding challenge to make a single page app (90 minutes of coding and 30 minutes of reviewing the code)","whiteboarding":"no","whiteboarding_details":"everything was done on my personal computer","negotiation_details":null,"notes":null},{"name":"Kevin Cai","email":"kevincai1979@gmail.com","company_name":"Uber","position":"Apprenticeship Software Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":null,"tech_screen":"no","tech_screen_details":"Algorithm code challenge and some behavial questions","take_home_challenge":null,"take_home_challenge_details":null,"onsite":"yes","onsite_details":"One hour algorithm with a senior sofeware engineer and one hour behavial questions with a hire manager","whiteboarding":"yes","whiteboarding_details":"Given an array of strings and return an array with sub-array of anagrams","negotiation_details":null,"notes":null},{"name":"Dillon Arevalo","email":"dillonbarevalo@gmail.com","company_name":"JP Morgan Chase","position":"Front-end Engineer","difficulty_rating":"2","experience_rating":"2","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Asked a few general questions followed by a quick live coding and coding question session. Answered question about closure and did a quick algo (take repeating letters out of word)","tech_screen":"yes","tech_screen_details":"see phone screen. it was kinda both","take_home_challenge":"yes","take_home_challenge_details":"Algorithm challenge. Word search. Done before phone screen and I don't think it's standard. I did on because I applied through other DBC alum working there i think.","onsite":"yes","onsite_details":"had 2 onsites. First one was 3 hours long with 4 interviews. Did some quick TDD, then some JS designing of a module that used callbacks and seemed to be testing scope above much else. Then had a HTML, CSS, and JS about designing a visual component. last interview that day was personality/culture interview. Interviewer was a scrum manager and seemed really grumpy. never smiled. put me off a little. Everyone else was super friendly and nice. Second onsite was for a more specific team and we did a simple algorithm, talked over my resume, and then I talked to the team lead about culture things and went in depth on my experience and resume.","whiteboarding":"yes","whiteboarding_details":"see general onsite experience section.","negotiation_details":null,"notes":null},{"name":"Sam Leiken","email":"saml@surveymonkey.com","company_name":"SurveyMonkey","position":"Software Engineer Intern","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":null,"accepted_offer":"yes","phone_screen":"yes","phonescreen_details":null,"tech_screen":"yes","tech_screen_details":"45 minute standard technical interview","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":null,"whiteboarding":"yes","whiteboarding_details":"There were 3 back to back whiteboarding interviews: write an encoder and a decoder. map telephone numbers to all possible words. something about binary trees that I forget","negotiation_details":null,"notes":null},{"name":"Rio Nose","email":"rnose512@gmail.com","company_name":"Fujisan","position":"Software Engineer","difficulty_rating":"1","experience_rating":"2","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"no","phonescreen_details":null,"tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"Asked me to look at some code and what I knew about certain topics.","whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Louis Rowan","email":"louis.rowan2@gmail.com","company_name":"WalmartLabs","position":"Software Engineer","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Very basic cultural/experience questions","tech_screen":"yes","tech_screen_details":"JavaScript technical questions completed on jsfiddle","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Garima Jain","email":"garimaj2108@gmail.com","company_name":"Pinterest","position":"Growth Apprenticeship Engineer","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"no","phonescreen_details":null,"tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"Asked to build a Pinterest home page clone with responsive web page, pagination and auto adjustment of images ","onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Valeria Martinez","email":"valeriamartinez94@gmail.com","company_name":"Microsoft ","position":"LEAP program ","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"no","phonescreen_details":"Scheduled 2 technicals right after receiving e-mail","tech_screen":"yes","tech_screen_details":"2 45 minute sessions - one standard question (it was pretty high level - just had to pseudocode), other was a design question - how would you build X application?","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Jenna Ritten","email":"jritten@umich.edu","company_name":"Jenna Ritten","position":"Apprenticeship","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":null,"tech_screen":"yes","tech_screen_details":"Agile Fibonacci in Javascript","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Lisa Nguyen","email":"lisathuanguyen@gmail.com","company_name":"Apple Inc","position":"Data Analyst","difficulty_rating":"1","experience_rating":null,"referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Basic \"get to know you\" questions","tech_screen":"yes","tech_screen_details":"Basic python/prgramming questions","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Eric Booker","email":"ericbooker12@gmail.com","company_name":"Handshake","position":"Quality Engineer","difficulty_rating":null,"experience_rating":"2","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"no","phonescreen_details":"Hasn't Happened yet","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Jun Ota","email":"d14864@me.com","company_name":"Google","position":"Software Engineer","difficulty_rating":"2","experience_rating":"2","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"no","phonescreen_details":null,"tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Brian Lee","email":"brianleedongjun@gmail.com","company_name":"Square","position":"Software Engineer","difficulty_rating":"1","experience_rating":"2","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"Behavioral question/ tech stack questions","tech_screen":"yes","tech_screen_details":"Algorithm code challenge","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":"no","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Alexandria Nelson","email":null,"company_name":null,"position":"Ruby on Rails Engineer","difficulty_rating":"1","experience_rating":"2","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"they asked mostly background info","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"they had me build a very simple ruby on rails application","onsite":"yes","onsite_details":"2 on site interviews. One was more behavioral and one was technical.","whiteboarding":"yes","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Brian Bernheim","email":"Btbernheim@gmail.com","company_name":"Datadog ","position":"Solutions Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Background discussion, details of code challenge ","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":null,"onsite":"yes","onsite_details":"2 personality interviews and 1 whiteboarding interview","whiteboarding":"yes","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Millie Chan","email":"milliechan.sf@gmail.com","company_name":"PayPal","position":"JS Node Engineer","difficulty_rating":"3","experience_rating":"1","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"It was just 1 phone screen, no recruiter, just engineer and it was technical. Details in next cell.","tech_screen":"yes","tech_screen_details":"standard \"are you a normal person\" check and technical JS phone screen regarding reversing a sentence and the words and letters in it","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"4 hours long, 1st interview was JS practical interview about manipulating the DOM, 2nd interview system architecture, lunch w/manager, 3rd and 4th were similar and just rapid fire JS questions","whiteboarding":"yes","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Lisa Nguyen","email":"lisathuanguyen@gmail.com","company_name":"Topix","position":"Junior Developer","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":null,"tech_screen":"no","tech_screen_details":null,"take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":"4 interviews. 2 personal. 2 technical","whiteboarding":"yes","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Maria Luisa Ramos","email":"maluisa.rc@gmail.com","company_name":"Affirm","position":"Strategy and Analytics","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"My experience and talk about projects I had worked on","tech_screen":"no","tech_screen_details":"Not Applicable","take_home_challenge":"yes","take_home_challenge_details":"Analytics exercise using SQL","onsite":"yes","onsite_details":"Very positive, 2 business cases","whiteboarding":"yes","whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Jennifer Shopsin","email":"jennifer.shopsin@gmail.com","company_name":"Box","position":"Demo Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"Cultural Fit, basic get to know you questions","tech_screen":"no","tech_screen_details":"take home instead","take_home_challenge":"yes","take_home_challenge_details":"Given an actual assignment that had been given to a demo engineer before, make 2 websites (one to upload documents, and one to view those documents securely - using the Box API)","onsite":"no","onsite_details":"I was scheduled for an on-site and feel that I would have received an offer, but after receiving another offer, I decided to turn this position down.","whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Josh Nickell","email":"nickell.josh.a@gmail.com","company_name":"Ad Hoc","position":"Web Engineer","difficulty_rating":"2","experience_rating":"2","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"Intro and experience ","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"Add javascript to a single page","onsite":"no","onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Faye Hayes","email":"fhayes30@gmail.com","company_name":"Touch of Modern","position":"Rails Support Engineer","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"Easy behavioral questions. ","tech_screen":"yes","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"Straightforward, paid a lot of attention to test coverage","onsite":"no","onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Erinc Emer","email":"erincemer@gmail.com","company_name":"Fitbit","position":"Front-end Engineer","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"Why I applied, brief detials about myself.","tech_screen":"yes","tech_screen_details":"Basic ror questions, what I enjoy in a project.","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Amanda Cook","email":"amandawouldgo@gmail.com","company_name":"Paypal","position":"Software Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"General convo about experience, why I wanted the job, etc.","tech_screen":"yes","tech_screen_details":"Online screenshare solving coding questions. ","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"no","onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Marcela Porto","email":"marcela.fporto@gmail.com","company_name":"Creditas","position":"Junior Software Engineer","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Asked about back ground and told me about the company and the selection process","tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"Ecommerce challenge focused on refactoring, implementing a feature and using design patterns","onsite":"yes","onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Danielle Glass","email":"danielleglass@me.com","company_name":"Ohm","position":"Backend Software Engineer","difficulty_rating":"2","experience_rating":"3","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"no","phonescreen_details":"cultrual recruiter screen","tech_screen":"yes","tech_screen_details":"simple problem to solve, less challenging than most hackerrank stuff","take_home_challenge":"no","take_home_challenge_details":null,"onsite":"yes","onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Danielle Glass","email":"danielleglass@me.com","company_name":"JP Morgan","position":"Software Engineer - Big Data Digital","difficulty_rating":"3","experience_rating":"1","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"no","phonescreen_details":null,"tech_screen":"no","tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"The interface was incredibly difficult to deal with. Additionally the challenges themselves(2 of them) had nothing to do with Javascript, HTML or CSS which is what I was told the position was for.","onsite":null,"onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Jane Willborn","email":"iamjane@gmail.com","company_name":"HipCamp","position":"Software Engineer","difficulty_rating":"2","experience_rating":"2","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"no","phonescreen_details":null,"tech_screen":null,"tech_screen_details":null,"take_home_challenge":"yes","take_home_challenge_details":"They didn't specify details in the challenge (display data from a JSON file), but in the followup they said they were looking for applicants to use recursion in React to complete ","onsite":null,"onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Jane Willborn","email":"iamjane@gmail.com","company_name":"Pivotal","position":"Software Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":null,"accepted_offer":null,"phone_screen":null,"phonescreen_details":null,"tech_screen":"yes","tech_screen_details":"Nagivate in a pair to build a set in Java (you don't need to know Java) Use TDD!","take_home_challenge":null,"take_home_challenge_details":null,"onsite":null,"onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Jane Willborn","email":"iamjane@gmail.com","company_name":"Esurance","position":"Front-end Engineer","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":null,"accepted_offer":null,"phone_screen":"yes","phonescreen_details":"Behavioral","tech_screen":"yes","tech_screen_details":"One algorithm (sorry I can't remember! but I think it was JS), a simple CSS challenge (put things in four corners of the screen I think?), and a general front-end CS quiz","take_home_challenge":null,"take_home_challenge_details":null,"onsite":null,"onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Jane Willborn","email":"iamjane@gmail.com","company_name":"MixPanel","position":"Software Engineer","difficulty_rating":"3","experience_rating":"1","referred":"yes","received_offer":null,"accepted_offer":null,"phone_screen":null,"phonescreen_details":null,"tech_screen":"yes","tech_screen_details":"They use Triplebyte's standardized quiz, but it's like... over an hour of questions in everything from Python to C++ to theory to everything. Good for studying from; ridiculous for an interview ","take_home_challenge":null,"take_home_challenge_details":null,"onsite":null,"onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Louie Chen","email":"louiehchen@gmail.com","company_name":"#YesWeCode","position":"FS Development Instructor","difficulty_rating":"1","experience_rating":"2","referred":"no","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":"Pretty much \"tell us your background\", behavorial stuff","tech_screen":"no","tech_screen_details":null,"take_home_challenge":null,"take_home_challenge_details":null,"onsite":null,"onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Jane Willborn","email":"iamjane@gmail.com","company_name":"JP Morgan Chase","position":"Front-end Engineer ","difficulty_rating":"2","experience_rating":"1","referred":"yes","received_offer":"no","accepted_offer":null,"phone_screen":"no","phonescreen_details":null,"tech_screen":"yes","tech_screen_details":null,"take_home_challenge":null,"take_home_challenge_details":null,"onsite":null,"onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Danielle Glass","email":"danielleglass@me.com","company_name":"Walaroo Labs","position":"Evangelist","difficulty_rating":"1","experience_rating":"3","referred":"no","received_offer":"no","accepted_offer":null,"phone_screen":"yes","phonescreen_details":"This position was 100% remote with no support in the bay area, company is based in NY. I wasnt interested in that type of remote position yet.","tech_screen":null,"tech_screen_details":null,"take_home_challenge":null,"take_home_challenge_details":null,"onsite":null,"onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Sarah Linkous","email":null,"company_name":"MVCode Club","position":"Instructor","difficulty_rating":"1","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"no","phonescreen_details":null,"tech_screen":null,"tech_screen_details":null,"take_home_challenge":null,"take_home_challenge_details":null,"onsite":null,"onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Kelvin Lightner","email":"kelvin.lightner@gmail.com","company_name":"Intuit","position":"Software Engineer Apprentice","difficulty_rating":"3","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"no","phonescreen_details":null,"tech_screen":null,"tech_screen_details":null,"take_home_challenge":null,"take_home_challenge_details":null,"onsite":null,"onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null},{"name":"Jadzia Thomas","email":"jadzia@jadziahax.com","company_name":"Twilio","position":"Software Engineering Apprentice","difficulty_rating":"2","experience_rating":"3","referred":"yes","received_offer":"yes","accepted_offer":"yes","phone_screen":"yes","phonescreen_details":null,"tech_screen":null,"tech_screen_details":null,"take_home_challenge":null,"take_home_challenge_details":null,"onsite":null,"onsite_details":null,"whiteboarding":null,"whiteboarding_details":null,"negotiation_details":null,"notes":null}] diff --git a/db/dbc_data.csv b/db/dbc_data.csv new file mode 100644 index 0000000..d10d4d1 --- /dev/null +++ b/db/dbc_data.csv @@ -0,0 +1,109 @@ +name,email,company_name,position,difficulty_rating,experience_rating,referred,received_offer,accepted_offer,phone_screen,phonescreen_details,tech_screen,tech_screen_details,take_home_challenge,take_home_challenge_details,onsite,onsite_details,whiteboarding,whiteboarding_details,negotiation_details,notes +Davis Bare,davison.bare@gmail.com,Datadog,Solutions Engineer,2,3,yes,yes,yes,yes,"it was described as ""could i go out for beer with this person?"" by the person who hired me",no,,yes,"Had to set up your computer with their app, get everthing working and document it . took around 30 hours to complete",no,,yes,was remote; Algorithms using hash/array iteration,,"6 interviews total, hardest part was the take home challenge for sure. Took the most time and effort" +Earl Sabal,earlsabal@gmail.com,First Rebuplic Bank,Full-Stack Developer,2,2,no,no,,yes,"Asked about background, behavior, and why First Republic",yes,"Was asked to talk about solving finding a word that is 7 letters, if you dropped the first letter is still an synonym of the original word, and the dropped letter is an abbreviation of an antonym fo the original word",no,,no,,no,,,A DBC Alumni got hired here +Joseph Huang,huangx5j@gmail.com,Nvidia,AI Tech Support,1,3,yes,yes,yes,yes,"Background, team dynamics",no,,no,,no,,no,,,AI team is using python scripts +Youssef Kholeif ,yykholeif@gmail.com,Brainlabs Digital ,Digital Marketing / Software Development graduate scheme,2,2,no,no,,yes,,no,,yes,Presentation on anything of your choice,yes,"Just long onsite day with 3 interviews, mixed between cultural and technical. Presentation of your choice, then ended with 4 mini aptitude tests",no,,,Amazing company culture and probably the top 3 in the world performance marketing agencies. Only downside was the aptitude test which I was not prepared for. +Kaitlyn McPartland,kmcp921@gmail.com,Nordic Consulting Partner,Senior Consultant,2,3,yes,yes,yes,yes,Background with Epic software and previous projects,yes,"Asked technical questions regarding Epic software - how to build certain features, process for troubleshooting specific technical errors",no,,no,,no,,"I negotiate salary and travel per contract, negotiated less travel for most recent contract and slightly higher salary based on my valuation of my previous certifications",As of right now you can only work here as a consultant if you have Epic certifications - they might open up to include Cerner and Meditech in the future +Rio Nose,rnose512@gmail.com,Smart Sparrow,Junior Learning Engineer,2,3,no,yes,yes,yes,"Basic background, experience, and more info about the company",no,,yes,I had to build a science simulation in JavaScript,yes,"I interviewed with 4 people, built chess with OOP, explained how I deal with project management",yes,Build chess using OOP concepts,"I received written offer, I negotiated saying how much other students were getting, they upped the offer 8k","Awesome company doing awesome things, with cool people. Will find out more when I start next week." +Kayden Maier,kaydenmaier7@gmail.com,Ellie Mae,Technical Support ,1,3,no,yes,yes,yes,Background and basic troubleshooting questions,no,,no,,yes,1 onsite 5 people one whiteboarding,yes,Is this string a Palindrome,They started at 63 I got them up to 70 + overtime and bonus,Best company I have ever worked for. Highly Highly recommend!!!! +Ransom Byers,ransom.byers@gmail.com,Pivotal,Software Engineer: CloudFoundry,2,3,yes,no,,yes,Basic background and interests,yes,They have a standard interview called the RPI (Rob's Pairing Interview) that is perfectly suited to DBC grads.,no,,yes,A full day of pairing on one or two projects real projects.,no,,,"Cloudfoundry is much more technically challenging to apply for than Labs, but the San Francisco Labs office is being deliberately shrunk (IPO related financial decisions). The best bet for a recent DBC grad is to apply for a Labs position in any other city." +Mark de Dios,mhdedios@gmail.com,Computershare,Web Developer,1,1,no,no,,no,Simply checking for alignment of the job spec and the interviewee's past exp and ideals for future work,no,,no,,yes,"A couple questions from the engineers about making SQL queries, using an ORM, using a CMS e.g. Wordpress",no,,,"Conservative company with unpredictable, recursive responsibilities that do not get automatd. The PM threw a very condescending comment about the difference between a full stack engineer and software engineer. 10/10 would not rec" +George C,,yeti co,Front-End Engineer,2,3,yes,no,,yes,Basic Culture fit/background questions,no,They Did not have one,yes,1 data manipulation (find this data in an array)15min ...1 recursive algorithm 20min....1 dom manipulation(jqueary allowed) 25min... must use es2015,no,,no,,,"Culture seemed great, Jam room, VR area, free food days" +Zara Aslam,zaslam72@gmail.com,OneSignal,Software Engineer (w/ 40% Support Eng),1,2,no,no,,yes,Standard background -- how coding? Projects?,yes,1 hour timed coding challenge as technical phone screen -- Use HTML5 geolocation and weather API to display a user's local weather,no,,no,,,,,Engineering team comprised of all men. I think they were about to hire 1 female engineer but she was still in the interviewing phase. (this was back in January tho) +anon,n/a,Ginger Labs,QA Engineer,1,3,yes,yes,yes,yes,Basic getting to know you questions,yes,"Coding challenge over Google Docs, basic coding comprehension algos",no,,yes,"2 onsite interviews, more technical questions, writing bug reports, solving a couple real problems the company encountered",no,,,Great company +Nestor Ceron,nestor_ceron@yahoo.com,Adobe,Build & Release Engineer,1,3,yes,yes,yes,yes,Covered background and exerience. Went deep into how i came around to solve problems that i had in previous jobs,no,,no,,yes,I was interview buy the whole team that I am currently working with along with the manager. More basic background questions and some technical.,no,,,Great company culture. +Frida Sjöholm,fridacarolinasjoholm@gmail.com,Apartment List,Web Developer,2,3,yes,yes,yes,yes,"Tell us your background, interests and recent projects",yes,"Iterating on the take home challenge, creating new features",yes,"I was given two days to complete a email design with tracking, styling and tests",yes,"Meeting with 5 different parts of the team for different parts of the interview, mainly technincal but some q's about fit",yes,Algorithm,,"Great experience, great company!" +Rio Nose,rnose512@gmail.com,HelloSign,Full Stack Software Engineer,2,3,yes,no,,yes,"Asked if I know what inner join is, if I know PHP",yes,"Asked about indexing, caching",yes,Use HelloSign API,yes,"Code reviews, schema design, SQL queries, HTTP verbs",yes,schema designs,,HelloSign is an amazing company. I worked there previously. Recruiter and engineering manager called me to let me know that they didn't have the resources to make sure I had good support and mentoring as a junior so they couldn't hire me at the time. Very positive experience and friendly people as I remembered. 10/10 would recommend working at this company. Best place I've worked so far. +anon,n/a,Mapbox,Support Engineer ,2,3,no,yes,yes,no,,no,,yes,,yes,"My onsite was two full days at Mapbox. I was tasked with a project (which I worked on with others on my team) and spent my additional time meeting with others in the company for show and tells. At the end of my time, I presented my findings. ",no,,,I absolutely love working at Mapbox. I love going to work every single day. We are hiring! Check our job board! +Mike Tarkington,tarkmike@gmail.com,Datadog,Solutions Engineer,2,3,yes,yes,yes,yes,"Asked about my background, goals, why I wanted the position. Told me about the role and the take home assignment challenge.",no,,yes,"I was given a week to complete a challenge with a very specific set of instructions on how to use the Datadog platform as if I were a client developer. The challenge involved very basic usage of Python, creation of a Linux virtual machine, creating a small app that could be monitored by the Datadog agent. There was a lot of technical writing for step by step explanation of the process and statistal results.",yes,"My main interviews were not onsite because the role is remote but I met with 5 people over the course of 2.5 hours using video conferencing software. It started with two pairs of engineers on the team, one being a team lead and the other being a senior Solutions Engineer. The discussion with the pairs was not very technical but we did touch on a few topics in the natural flow of conversation. We were mostly getting to know eachother and I told them about my background and specifically how past experiences yielded transferable skills into this role. The final step was a 1 hour techincal challenge with a senior software engineer.",yes,"The main challenge was over a shared code editor with compiler. It involved a problem similar to the Roman Numerals challenge. After solving the initial problem, there was a technical discussion about alorithm time and space complexity, edge cases, test driven development, and error handling. It's important to solve the problem but even more important to be able to talk your way through the solution and then demonstrate knowledge of fundamental computer science concepts and software development conventions.",,"I know other people have had varying rates of progress for their interview timeline, but it's worth mentioning that it took about two months with a lot of delays. That said, it was the holiday season and there were some major events taking place in the company. Just don't be surprised if you need to be a little patient. Everyone I met was very friendly and professional. Overall great experience and I'm thrilled to work with them!" +Rebecca Orr,rreorr@gmail.com,Eaze,Software Engineer,2,3,no,yes,yes,yes,Behavioral,no,,yes,Build a gif searching app using the giphy api,yes,"1 onsite, 4 1 hour interviews. 2 technical, 1 product/ux, 1 beahvioral/cultural",yes,"Build out the flow for a school election system (everyone can vote once for each position (pres, vp, secretary, etc)). After basic crudflow diagramed, asked to whiteboard networking calls using callbacks. Other technical was a comprehensive ask about iOS/cocoa/architecure and design patterns",,"I love working at Eaze. Please reach out if you're interested, we're hiring! Looking for node/react peeps." +Robert Turner,georob23@gmail.com,Fugro,Software Engineer,1,2,no,yes,yes,no,,no,,,,no,,no,,,"I returned to the company I left for DBC, thus my lack of interviews, etc.This company does not know how to handle tech unfortunately and I wouldn't recommend working here. I'll be moving on before too long." +Jaime Rios,jaimejrios1@gmail.com,IncreaseLife LLC,CTO,3,3,yes,yes,yes,yes,In-depth questions about success mindset practices,no,,no,,yes,"It was a great culture fit, CEO and I were vibing.",no,,,I was sold +Alex Carroll,lex.ac1@gmail.com,Recurly,Support Engineer ,2,3,no,yes,yes,yes,Basic background and Experience ,yes,4 algorithms and some SQL questons,no,,yes,"1 onsite, 5 people, whiteboarding, sql reading challenge, background fit",yes,,Witheld my desired number at each interview and got initial offer that fit my number and accepted. Got a call when the written offer was ready to sign that they raised the offer 10%. Recurly is great to work for.,"Know the position day to day activities. Look it up if you dont know. Also be ready to piviot on the position if you can. Just get in and take the experiance and skip the interview grind. The initial position I was interviewed for went to another person, but I was able to piviot because I was open from the get go. Also did 3 months of grinding after camp to prep for interview with algos and projects and it paid off." +Yaritza Perez,yaritzape9@gmail.com,uber,Apprenticship,2,2,yes,no,,yes,Discussed knowlege and when through and algorithm,yes,basic javascript iterating through arrays,no,,no,,no,,,let you know about it later +Dharini Murugaprabhu,dharinishree@gmail.com,Gobalto Inc,Full-Stack Developer,2,3,no,yes,yes,yes,Solved Logic puzzle and general conversation about experience,yes,Algorithm code challenge and new logic puzzles,yes,"Full stack app development using Rails and JS, focused on front-end",yes,Three rounds of technical inteview and chat with CEO,yes,"Basic JS, Rails joins, DB schema",, +Katie O'Neill,katiemarieoneill@gmail.com,LinkedIn,Software Engineer Apprentice,1,2,yes,yes,yes,no,,no,,yes,"We were provided an API with a word list and needed to create a hangman word game. They were very open to creativity and we could create the game as a web app, mobile app, or command line app.",yes,There was a one hour culture fit interview and a two hour technical interview. In the tech interview we presented our take home challenge and then coded extra features on the spot as requested by the interviewers.,no,,, +Benjamin Acevedo,bacevedo@gmail.com,NetGear,Brand Manager of E-Sports,1,3,yes,yes,yes,no,Did not have a phone screen.,no,,no,,yes,Two soft interviews. One with the team discussing e-sports and the brand opportunities. The second with the SVP's of product and markeiting and talked about plans and roadmap for the next year.,no,,,NetGear hires everyone on a contract basis for the first 30-90 days. Much of their roles are filled from within. They promote from within regularly. +Kayden Maier,kaydenmaier7@gmail.com,Interana,Support Engineer ,2,3,yes,yes,yes,yes,Backround info and programing problem i've solved,no,,no,,yes,1 on site 5 interviews one of which was Whiteboarding,yes,Is this string a Palindrome,they offered 90 I wanted 100 we met at 96,Not a great company for a first time job in Tech. They need someone with a few years experience +Robbie Santos,robbiealixsantos@gmail.com,Smith,Software Engineer,1,3,yes,yes,yes,no,,no,,no,,no,,no,,,"Our acquiring company, Porch, is in Seattle and the Smith team is located in Sunnyvale. Having the support of a bigger organization while being able to hang on to that start-up-move-fast environment is great. I am very thankful for this opportunity to work as a legit full stack developer" +Vilde Vevatne,vilde@vevatne.no,Pinterest,"Software Engineer, Apprentice",2,3,yes,yes,yes,no,,yes,Talked about my coding experience and background and solved an algorithm.,yes,Build a Pinterest clone with infinite scrolling and treating a given json object as an API response.,yes,3 technical interviews. Being asked to solve tightly scoped problems that were highly applicable to the actual job. Had a lunch with an employee to evaluate culture fit.,yes,Find pinnable images on any given webpage. Iterate through an object and returning information.,,"Pinterest is in many ways a great company, however the apprenticeship could be better structured. " +Jay Naidu,j_hawx@yahoo.com,Cruise Automation,Autonomous Vehicle Trainer,1,3,no,yes,yes,yes,"Asked what I know about the company, why I would be a good fit",no,,no,,yes,"2 interviews; first was about my prior work experience and education, second had behavioral questions",no,,,"Relatively new company (purchased by General Motors last year), great workplace culture, conveniently located near me, working with self-driving cars" +Jessica Forchione,jsforchione@gmail.com,Salesforce,Demo Engineer,2,3,yes,yes,yes,yes,"General convo about experience, why I wanted the job, etc.",yes,Multiple choice test on coding questions,yes,cannot provide details,yes,"Culture, skills, presentation",yes,,,Salesforce is amazing! +Chester Hoang,ChesterLHoang@gmail.com,Haystack TV,Software Engineer,2,1,no,yes,yes,yes,Architectural UI questions. What to watchout for when building a web app.,yes,Algorithm Question. Stairs,no,,yes,"Met with 3 people. SQL Queries, HTML/CSS Architecture, Big(O)",yes,,"Couldn't negotiate Salary, but received more equity.",Startup Culture is important. Make sure you ask about it during the interview process. +Ellie Bahadori,,Stitch Fix,Junior Software Engineer,2,3,no,yes,yes,yes,"Standard phone screen, looking for culture fit, engagement about company, etc.",no,"There was a product phone screen, which involved being given a business problem and brainstorming ways to solve it",yes,"Smaller version of real code in production, asked to add some features with test coverage",yes,"4-5 interviews, which included pair programming, a technical exercise, meeting with business partners, engineer leadership, etc.",no,,"Strong initial offer, did not negotiate","Stitch Fix is incredible. Everyone is willing to share knowledge, and you're surrounded by people who are brilliant at what they do. Amazing leadership, strong engineers, and an astoundingly positive work culture." +anon,n/a,Google,Software Engineer - Machine Learning,1,3,yes,yes,yes,yes,Standard Google Questions,yes,Boltzmann Machine Explanation,yes,,yes,"Standard machine learning questions, beginning with naive bayes classifiers, discussion regarding tensor flow, neural networks and NLP.",yes,,130k + 50k sign on bonus + 80k in stock - negotiated vs Microsoft Salary,Study hard +Hayden Langelier,hlangelier@utexas.edu,SiteTraker,Sales Engineer,1,2,no,yes,yes,yes,Get to know me and wanted to know about my dev experience,no,,no,,yes,"I interviewed with the CTO/Cofounder about my interest in the company, my background, my programming skills, interest in salesforce",no,,They offered more than i asked for,"Study up on salesforce, apex, and javascript" +Joe Hiner,JoeHinerIV@gmail.com,Cruise Automation,Vehicle Technician,1,3,no,,yes,yes,"background, expectations. second phone interview including technical questions",yes,Automotive focus. Some cultural/behavioral questions,no,,yes,Met ~4 people on the immediate location staff and had 1 heavily technical interview over the phone.,no,,I was urged to began the negotiation process with a base salary number. Their offer was about 95% of that base salary which I accepted.,Super cool company. Very happy. Thank you DBC! Thank you SarSar! +Dominique Crowther,Dominique.Crowther@gmail.com,JP Morgan Chase,Front End Engineer,2,1,yes,no,,no,,yes,Asked to talk about one of my projects then some technical Javascript questions involving Promises and higher-order functions,yes,Had 2 hours to solve a few algorithms in whatever language you wanted,no,,,,,Technical Interviewer seemed stressed about something and checked out. It was very off-putting. +anon,n/a,First Republic Bank,Full-Stack Developer,1,1,no,no,,yes,General conversation & basic scripting question,yes,String parsing question,no,,yes,"Cultural fit, basic coding",,"Implement left join, Monadic SQL Parser, using a dictionary to find the most popular word",,"Terrible company, seems to be chaotic, clear lack of direction." +anon,n/a,Jaguar Design Studio,Junior Software Engineer,1,1,yes,yes,yes,yes,General conversation & basic scripting question,yes,A couple simple coding questions,yes,You had to find the challenge in the js console to solve the challenge. This was super fun.,yes,Only with the CEO of company (super small company),no,,"Negotiated from small amount to slightly bigger, small amount","Terrible experience, terrible company, pay scale not worth the trouble. Highly do not recommend." +Chinmay Banker,chinmaybanker@yahoo.com,Skillz,Ruby on Rails Engineer,2,1,yes,no,,yes,"Introductory - ""Tell us about yourself"", ""have you heard about us?"", ""do you know what we do?""",no,,no,,yes,"2 rounds - 1 technicsal, 1 with CEO",yes,"Draw database schemas, explain how servers and clients communicate, what do JSON properties look like, server requests and their contents, how do servers handle excessive requests, how can you scale DBs. On computer, was asked to create a rails app simulating a pet shelter - 45 mins, googling was allowed.",,"The company has a great product, the teams that i interviewed with were great as well. However, my interview with the CEO left a bad taste in my mouth. He spoke as if he did not believe bootcamp grads deserve an opportunity. Very condescening and rude from the moment i sat down. I would not have accepted an offer even if i got one because after the CEO interview I had doubts about his leadership qualities." +anon,n/a,Planet,Software Engineer,2,1,no,yes,yes,yes,Only technical phone screen (see next tab),yes,"Questions about API design, HTTP, request/response and networking, Linux scripting",yes,"Given a set of constraints, build an API service. Design details intentionally left open to evaluate the candidate's design decisions.",yes,~4 hours interviewing with team members with technical (programming and design) and behavioral questions.,yes,A data manipulation and storage exercise.,,"The interview process was positive. However, I can't say the same thing about the work environment. They claim a culture of diversity, inclusion and empathy, as well as a humanitarian-oriented mission, but while working there I experienced a toxic environment, a complete lack of transparency from management and no real engagement in doing good for the Earth." +Renan Souza,renanbarbosadesouza@gmail.com,New Story Charity,Full Stack Web Developer,1,3,yes,no,,no,,no,,no,,no,,no,,,The interview was made through video skype and we talked about my skills and what the company needed. After they showed my two projects one easy and one a little hard to choose and I select the most challenging one and explained how I would make the app +Jen Young,jyoung488@gmail.com,HelloSign,API Support Engineer,2,3,yes,yes,yes,yes,"with recruiter, basic background questions, basic API knowledge",no,,no,,yes,"2 rounds of onsite interviews: First interview was 4 hours with recruiter and 4 other people with some technical questions; 2nd interview with COO, CEO, hiring manager and recruiter again",yes,"Talked through the game of life problem and drew out some diagrams but didn't actually solve the problem, basic API calls in cURL, reverse string",I negotiated with the VP who was a freaking shark and would not recommend going up against her again,the process was quick once we both realized how well i fit into the company +Jennifer Shopsin,jennifer.shopsin@gmail.com,Autodesk,Software Engineer,2,3,yes,yes,yes,yes,"Cultural fit, asked about who I would give as a reference, what they would rate me from 1 to 10 and why",yes,"Review a project of your choice and add a feature together with the interviewer, I did not complete the added feature, but did show understanding of Rails, React and JS",no,,yes,1 cultural fit interview with hiring manger and 2 technical interviews,yes,"Given a nested hash or object, output a string of html based on the value of each key",Negotiated slightly higher salary after explanation of my added value from my background,"They moved incredibly quickly (1 week turnaround, plus 1 week offer deadline) I felt that they really valued my time and were extremely pleasant throughout the process. There are even 3 other DBC grads in my team." +Amber Nash,nash.beram@gmail.com,Datadog,Technical Support Engineer,1,2,yes,no,,,Simple personality check,no,No phone tech screen,yes,"Utilizing Datadog interface, command line heavy, fairly simple save for running into bugs.",yes,2 interviews with two people in each. Focussing on your experience/why you think you'd be a good fit.,yes,"Was remote - As a woman, my interviewer was changed to a woman outside of what would have been my team with higher standards, and a request for a more complex output than my male counterparts. Completed a data structure problem with some guidance, but failed the interview.",,"They were really nice. While their treatment of women is shaky, I think they'd be a good company to work for." +Andrea Scott,andreahaleyscott@gmail.com,Twilio,"Solutions Lead, Sales Systems",2,3,yes,yes,yes,yes,"Personality check, pretty minimal because I was a referral from the hiring manager.",no,,yes,"My takehome challenge was a product-management case study, not a coding challenge. It was challenging, but not terrible.",yes,"I did two on-site interviews: one to present my case study, and another that was about 4 hours of interviews with team members and key stakeholders.",yes,Whiteboarding to describe a data model and potential solution to a business use case.,Negotiated a larger RSU grant than was offered.,This company is really amazing and was incredibly transparent during the hiring process. It may have been easier for me since I was referred by the person who is now my boss. +Hawken Ritter,hawkenritter@gmail.com,PwC ,"Consultant, Technology and Software Sector",2,3,no,yes,yes,yes,Standard background and behavior questions,yes,"Questions about DCF Models, Leveraged Buy outs, technical accounting etc... ",no,,yes,"3 rounds of in person. 1 at hotel, 1 on-campus(at school), final in the office",no,,,Very corporate culture. Understand the benefits and limitations that entails. +Angela Rivera,rvra.angela@gmail.com,Adobe,Software Engineer,1,3,yes,yes,yes,yes,Discuss existing knowledge re: data science algos,no,,no,,yes,"Existing knowledge of market, behavioral questions",yes,K Means Clustering,,Will update with more notes at a later time! +anon,n/a,Microsoft,Software Engineer - Machine Learning,1,3,no,yes,no,yes,Standard Microsoft Questions,yes,"Neural network discussion, feature selection and training design",no,,yes,Interviewed in Washington. Standard machine learning interview.,yes,,125k + 30k sign on bonus + 100k in stock, +Sean Lee,seanboramlee@gmail.com,Fetch,Software Engineer,2,3,no,yes,yes,yes,Mostly cultural and standard background.,no,,yes,Build a rich media animated banner,yes,Not technical. Cultural and product oriented.,no,,80k offer. Countered with 90. Settled at 85k., +Zara Aslam,zaslam72@gmail.com,LinkedIn,Apprenticeship,1,3,no,yes,yes,no,,no,,yes,Create a hangman game that uses their API on any framework web/mobile/command-line,yes,3 hours of interview (2 hour technical 1 hour nontechnical) and lunch/welcome speech. The technical portion included me talking about my hangman solution + implementing a new feature,no,,Apprenticeship-wide set hourly wage, +Sam Parker,sam@samgparker.com,RichRelevance,Technical Support Engineer,1,3,yes,,yes,yes,Cultural and standard background,no,,yes,"FizzBuzz, basic HTML CSS and JavaScript DOM manipulation",yes,~4 hours. Some logic puzzles and more background/culture,no,,First offer was ~10K under what I said was a min acceptable. Negotiated up to min acceptable. Should not have given a min acceptable in the first place :| might have been able to get another 5-10K I believe., +Katee Trant,katee.trant@gmail.com,Shyp,Jr Platform Engineer,2,3,yes,yes,yes,yes,Background and behavioral,no,,no,,yes,"Met with entire team (5 people) individually for 1 hour each. Sql questions, interacting with 3rd party APIs, walkthrough of past project, design question, building out an enpoint",yes,"Build an endpoint, including sql queries for a modal to display when weather impacts shipping. This should only display once per customer for each event.",I was given an amazing first offer... no need to negotiate, +anon,n/a,Box,Demo Engineer,2,3,yes,yes,no,yes,Mostly background questions,yes,Technical Convo about past projects,yes,Build an app using their api. It was relatively straight-forward,yes,"Cultural fit questions, as well as project questions",no,,"Just got the offer, will negotiate after interview at second company tomorrow", +Jay Tsukano,jaytsukano@gmail.com,ILWU-PMA Benefit Plans Office,,1,3,no,yes,yes,no,,no,,no,,no,,no,,Negotiated for a higher salary but settle with their explanation to why they couldn't. I will be given a review again in a few months to re-evaluate my compensation., +Chinmay Banker,chinmaybanker@yahoo.com,ReliaMax,Software Engineer,2,3,no,yes,yes,yes,"Introductory phone call, ""what are you looking for"" etc.",no,,yes,"Create a single-page application using Node.js, Vue.js, MongoDB and Express",yes,"2 rounds - 1 technical, 1 team dynamics",no,,Negotiated to a higher number than originally offered., +Angela Marshall,hello@angelasmarshall.com,Sincerely,Web Engineer,1,3,no,yes,yes,yes,Answered general questions about myself/my background and learned more about the company.,no,,yes,They pitched an issue to me and I had to create an app with my personal solution using a JS framework of my choice. ,yes,3 rounds - Mostly revolved around cultural fit and basic coding knowledge (they saw my work for the take home challenge and we discussed that as well),no,,Negotiated to a higher number than the original offer. , +Filmon Mengisteab,filmon.mengisteab@yahoo.com,Adobe,Software Engineer,1,3,yes,yes,yes,yes,"background, expectations, including technical questions",,,no,,yes,Questions to see how I can fit,no,,No, +Antonio Saric,antoniosaric@hotmail.com,Level Play Sports,Lead Web Developer,1,3,yes,yes,yes,yes,Basic Background and Experience,no,,no,,no,,no,,Non-Negotiable Salary, +Marty McLaughlin,martymclaugh@gmail.com,Fandor,Software Engineer,1,2,no,yes,yes,no,I was already working as Customer Service/QA,no,I was already working as Customer Service/QA,yes,rebuild their most difficult page using a json file and whatever tech I wanted,no,,no,,yes and it didn't work., +Nicholas Davidson,nick@nickdavidson.io,RichRelevance,Integration Engineer,1,3,yes,,yes,yes,"2 phone screens: First, HR, genral background, introductory. Second, Hiring Manager, team/job specifcs",no,,yes,"6 problems including HTML, CSS, JavaScript, and JSON",yes,"I met with four different people, all from my current team to discuss background, bahvioral questions, and the results from my take home challenge",no,,"Yes, tried to negiotiate. Offer was more than fair, researched and presented case for an additional 5k; I was unsuccessful, but it was more than ok, because the offer was great to begin with, but you always have to try!", +Georgia Rust,georgia.rust@gmail.com,RichRelevance,Consultant,2,3,yes,yes,yes,yes,Hiring manager guaging personality ,no,,no,,yes,,yes,Algorithms,, +Laura Reynolds,lr.rnlds@gmail.com,Credit Karma,Software Engineer,2,3,yes,yes,yes,yes,"Basic ""get to know you"" questions",yes,Create a method to manipulate different data structures.,no,,yes,"3 rounds of interviewsl 2 technical, 1 more fit",yes,Algorithms; Classes and Inheritance,, +Jen Young,jyoung488@gmail.com,Hired,Technical Support Engineer,2,1,no,no,,yes,"Recruiter reached out to me, basic background questions",yes,"Coding challenge over coderpad, focused on efficiency",yes,"Addressing bugs in a RoR app and refactoring, they did not care about the outcome of this challenge and scheduled an onsite right away",yes,meet and greets with some engineers and 3 technical interviews and lunch,yes,"Coded Battleship with an engineer asking ""Is that how you do it?"" every 5 minutes",, +anon,n/a,Touch of Modern,Ruby on Rails Engineer,2,2,no,no,,yes,"1st round was pretty standard behavioral, 2nd round was a phone screen with the director of engineering.",yes,"Ruby on Rails database access methods, implementing a cache, system design, checking for duplicates in a string.",yes,Determing whether Cuboids overlapped using Ruby. ,yes,"Panel interviews, you'll meet everyone on the team. ",yes,Counter clockwise matrix rotation. System design without a database.,, +Eric Yang,ericyang321@gmail.com,Scribd,Frontend Engineer,2,3,no,yes,yes,yes,Basic background and Experience ,yes,"DOM manipulation knowledge, and React stuff",no,,yes,"1 onsite, 5 people, whiteboarding",yes,"Find most commonly appearing words, and create a summary of an article",, +Dawson Graham,hdawsong@gmail.com,Google,Software Engineer - Tools & Infrastructure,2,2,no,no,,yes,"General conversation around experience, goals, culture fit, etc",yes,"Not as difficult of problems as I had expected from Google. Biggest piece of advice: KNOW THE TREES (BST, Heaps, Tries are most popular)",no,"I completed a take-home challenge for StitchFix in a separate application. It was for a QA Automation role so they had me fix incorrect test specs in the web app they sent over, implement new tests, and add a new feature (with tests) to the sample web app. The app just took submission of an excel file with items and associated prices, then did simple stuff with it.",no,"Did an onsite for Skillz in separate application. 45 minutes to build a sample animal shelter CRUD app with 3-4 separate pages, about 4-5 use cases, and the computer they provide you doesn't have autosave enabled in sublime :(",no,"Highly suggest App Academy's 10X program. I took it over the month of October and every single day we practiced whiteboarding in front of others. Any questions or confusion about Big O regarding time and space complexities will be completely satisfied and easily understood by the end. They drill in great algorithm optimization techniques to increase performance (reduce Big O) and they also provide a great high-level view of what's going on outside of just the code, and how programs, machines, and network/internet connect and work full circle.",, +Ibraheem Abdul-Malik,hi@ibraheem.com,LinkedIn,Software Engineer,2,3,yes,yes,yes,no,,no,,yes,Build a hangman game in any language using a REST API,yes,"2 hours technical, 1 hour cultural",no,Live coding of the coding challenge including bug fixes and adding features,, +Govind Rai,raigovind93@gmail.com,Proteus Digital Health,"Software Engineer, Backend",2,3,no,,yes,yes,"background, projects, and technical questionairre (recuriter was engineer herself)",yes,"Questions about Node.js, JavaScript, NoSQL vs SQL, Cloud Services",no,"You can have a take home, but I opted in an over the phone challenge vs take home",yes,"~4 hours. Interviewed with 7 individuals. Very positive experience. Very nice, smart people. Company is doing super hot.",yes,Map out an contrived api (i.e. a weight scale that is linked to the cloud and what a potential api could look like),, +Mike Tsou,mikeytsou@gmail.com,JP Morgan Chase,Front-end Engineer,2,2,yes,no,,no,,yes,"Three questions about event listeners, enumerating through a data structure, and using fetch",yes,Online coding challenge with two algorithms you must solve in 90 minutes each,no,,no,,, +Leah Keilty,lskeilty@gmail.com,Chartio,Success Engineer,1,3,no,no,,yes,General background information & role details,no,,yes,Take a dataset and create some data visualization to go along with the data set,yes,"Whiteboard challenge, two rounds of interviews, lunch, and 30 min of me 'teaching' the team something",yes,SQL questions,, +Aidan Legaspi,aidanlegaspi1@gmail.com,Autodesk,UI Engineer,2,3,yes,yes,no,yes,Background and behavioral,yes,Google hangout with two Sr. Eng. to review take home assignment.,yes,From the UX wireframes provided build this thing and discuss approach,yes,"3hrs. Met with lead product designer, principle UX architect, Sr. QA manager and Hiring Manager. Experience was really good. I was great to see so many facinating products that are designed with autodesk software.",no,,, +anon,n/a,Stitch Fix,Software Engineer,3,3,no,yes,yes,yes,Solving a business problem ,no,,yes,Add features to an existing app.,yes,"Cultural fit, technical challenge, refactor take home project",no,,, +Jennifer Shopsin,jennifer.shopsin@gmail.com,Box,"Software Engineer, WebApp",3,3,yes,no,,yes,"Cultural Fit, basic get to know you questions",yes,"asked about a JS callback function, given code with a function call and it's expected output, right the code to make the given calls work as expected",no,,yes,"Very long, 4 seperate interviews + lunch, 1 cultural fit interview with manager discussing a project and the group dynamics, 1 data structures algorithm question, 1 html + css challenge, and a 2 hour coding challenge to make a single page app (90 minutes of coding and 30 minutes of reviewing the code)",no,everything was done on my personal computer,, +Kevin Cai,kevincai1979@gmail.com,Uber,Apprenticeship Software Engineer,2,3,yes,no,,yes,,no,Algorithm code challenge and some behavial questions,,,yes,One hour algorithm with a senior sofeware engineer and one hour behavial questions with a hire manager,yes,Given an array of strings and return an array with sub-array of anagrams,, +Dillon Arevalo,dillonbarevalo@gmail.com,JP Morgan Chase,Front-end Engineer,2,2,yes,yes,yes,yes,Asked a few general questions followed by a quick live coding and coding question session. Answered question about closure and did a quick algo (take repeating letters out of word),yes,see phone screen. it was kinda both,yes,Algorithm challenge. Word search. Done before phone screen and I don't think it's standard. I did on because I applied through other DBC alum working there i think.,yes,"had 2 onsites. First one was 3 hours long with 4 interviews. Did some quick TDD, then some JS designing of a module that used callbacks and seemed to be testing scope above much else. Then had a HTML, CSS, and JS about designing a visual component. last interview that day was personality/culture interview. Interviewer was a scrum manager and seemed really grumpy. never smiled. put me off a little. Everyone else was super friendly and nice. Second onsite was for a more specific team and we did a simple algorithm, talked over my resume, and then I talked to the team lead about culture things and went in depth on my experience and resume.",yes,see general onsite experience section.,, +Sam Leiken,saml@surveymonkey.com,SurveyMonkey,Software Engineer Intern,2,3,yes,,yes,yes,,yes,45 minute standard technical interview,no,,yes,,yes,There were 3 back to back whiteboarding interviews: write an encoder and a decoder. map telephone numbers to all possible words. something about binary trees that I forget,, +Rio Nose,rnose512@gmail.com,Fujisan,Software Engineer,1,2,yes,no,,no,,no,,no,,yes,Asked me to look at some code and what I knew about certain topics.,no,,, +Louis Rowan,louis.rowan2@gmail.com,WalmartLabs,Software Engineer,2,3,no,yes,yes,yes,Very basic cultural/experience questions,yes,JavaScript technical questions completed on jsfiddle,no,,no,,no,,, +Garima Jain,garimaj2108@gmail.com,Pinterest,Growth Apprenticeship Engineer,2,3,no,no,,no,,no,,yes,"Asked to build a Pinterest home page clone with responsive web page, pagination and auto adjustment of images ",no,,no,,, +Valeria Martinez,valeriamartinez94@gmail.com,Microsoft ,LEAP program ,2,3,no,no,,no,Scheduled 2 technicals right after receiving e-mail,yes,"2 45 minute sessions - one standard question (it was pretty high level - just had to pseudocode), other was a design question - how would you build X application?",no,,no,,no,,, +Jenna Ritten,jritten@umich.edu,Jenna Ritten,Apprenticeship,2,3,yes,no,,yes,,yes,Agile Fibonacci in Javascript,no,,no,,no,,, +Lisa Nguyen,lisathuanguyen@gmail.com,Apple Inc,Data Analyst,1,,yes,yes,yes,yes,"Basic ""get to know you"" questions",yes,Basic python/prgramming questions,no,,no,,no,,, +Eric Booker,ericbooker12@gmail.com,Handshake,Quality Engineer,,2,no,no,,no,Hasn't Happened yet,no,,no,,no,,no,,, +Jun Ota,d14864@me.com,Google,Software Engineer,2,2,no,no,,no,,no,,no,,no,,no,,, +Brian Lee,brianleedongjun@gmail.com,Square,Software Engineer,1,2,yes,no,,yes,Behavioral question/ tech stack questions,yes,Algorithm code challenge,no,,no,,no,,, +Alexandria Nelson,,,Ruby on Rails Engineer,1,2,no,yes,yes,yes,they asked mostly background info,no,,yes,they had me build a very simple ruby on rails application,yes,2 on site interviews. One was more behavioral and one was technical.,yes,,, +Brian Bernheim,Btbernheim@gmail.com,Datadog ,Solutions Engineer,2,3,yes,yes,yes,yes,"Background discussion, details of code challenge ",no,,yes,,yes,2 personality interviews and 1 whiteboarding interview,yes,,, +Millie Chan,milliechan.sf@gmail.com,PayPal,JS Node Engineer,3,1,yes,no,,yes,"It was just 1 phone screen, no recruiter, just engineer and it was technical. Details in next cell.",yes,"standard ""are you a normal person"" check and technical JS phone screen regarding reversing a sentence and the words and letters in it",no,,yes,"4 hours long, 1st interview was JS practical interview about manipulating the DOM, 2nd interview system architecture, lunch w/manager, 3rd and 4th were similar and just rapid fire JS questions",yes,,, +Lisa Nguyen,lisathuanguyen@gmail.com,Topix,Junior Developer,2,3,no,no,,yes,,no,,no,,yes,4 interviews. 2 personal. 2 technical,yes,,, +Maria Luisa Ramos,maluisa.rc@gmail.com,Affirm,Strategy and Analytics,2,3,yes,yes,yes,yes,My experience and talk about projects I had worked on,no,Not Applicable,yes,Analytics exercise using SQL,yes,"Very positive, 2 business cases",yes,,, +Jennifer Shopsin,jennifer.shopsin@gmail.com,Box,Demo Engineer,2,3,yes,no,,yes,"Cultural Fit, basic get to know you questions",no,take home instead,yes,"Given an actual assignment that had been given to a demo engineer before, make 2 websites (one to upload documents, and one to view those documents securely - using the Box API)",no,"I was scheduled for an on-site and feel that I would have received an offer, but after receiving another offer, I decided to turn this position down.",,,, +Josh Nickell,nickell.josh.a@gmail.com,Ad Hoc,Web Engineer,2,2,no,no,,yes,Intro and experience ,no,,yes,Add javascript to a single page,no,,,,, +Faye Hayes,fhayes30@gmail.com,Touch of Modern,Rails Support Engineer,2,3,no,no,,yes,Easy behavioral questions. ,yes,,yes,"Straightforward, paid a lot of attention to test coverage",no,,,,, +Erinc Emer,erincemer@gmail.com,Fitbit,Front-end Engineer,2,3,no,no,,yes,"Why I applied, brief detials about myself.",yes,"Basic ror questions, what I enjoy in a project.",no,,no,,,,, +Amanda Cook,amandawouldgo@gmail.com,Paypal,Software Engineer,2,3,yes,no,,yes,"General convo about experience, why I wanted the job, etc.",yes,Online screenshare solving coding questions. ,no,,no,,,,, +Marcela Porto,marcela.fporto@gmail.com,Creditas,Junior Software Engineer,2,3,no,yes,yes,yes,Asked about back ground and told me about the company and the selection process,no,,yes,"Ecommerce challenge focused on refactoring, implementing a feature and using design patterns",yes,,,,, +Danielle Glass,danielleglass@me.com,Ohm,Backend Software Engineer,2,3,no,no,,no,cultrual recruiter screen,yes,"simple problem to solve, less challenging than most hackerrank stuff",no,,yes,,,,, +Danielle Glass,danielleglass@me.com,JP Morgan,Software Engineer - Big Data Digital,3,1,yes,no,,no,,no,,yes,"The interface was incredibly difficult to deal with. Additionally the challenges themselves(2 of them) had nothing to do with Javascript, HTML or CSS which is what I was told the position was for.",,,,,, +Jane Willborn,iamjane@gmail.com,HipCamp,Software Engineer,2,2,yes,no,,no,,,,yes,"They didn't specify details in the challenge (display data from a JSON file), but in the followup they said they were looking for applicants to use recursion in React to complete ",,,,,, +Jane Willborn,iamjane@gmail.com,Pivotal,Software Engineer,2,3,yes,,,,,yes,Nagivate in a pair to build a set in Java (you don't need to know Java) Use TDD!,,,,,,,, +Jane Willborn,iamjane@gmail.com,Esurance,Front-end Engineer,2,3,yes,,,yes,Behavioral,yes,"One algorithm (sorry I can't remember! but I think it was JS), a simple CSS challenge (put things in four corners of the screen I think?), and a general front-end CS quiz",,,,,,,, +Jane Willborn,iamjane@gmail.com,MixPanel,Software Engineer,3,1,yes,,,,,yes,"They use Triplebyte's standardized quiz, but it's like... over an hour of questions in everything from Python to C++ to theory to everything. Good for studying from; ridiculous for an interview ",,,,,,,, +Louie Chen,louiehchen@gmail.com,#YesWeCode,FS Development Instructor,1,2,no,yes,yes,yes,"Pretty much ""tell us your background"", behavorial stuff",no,,,,,,,,, +Jane Willborn,iamjane@gmail.com,JP Morgan Chase,Front-end Engineer ,2,1,yes,no,,no,,yes,,,,,,,,, +Danielle Glass,danielleglass@me.com,Walaroo Labs,Evangelist,1,3,no,no,,yes,"This position was 100% remote with no support in the bay area, company is based in NY. I wasnt interested in that type of remote position yet.",,,,,,,,,, +Sarah Linkous,,MVCode Club,Instructor,1,3,yes,yes,yes,no,,,,,,,,,,, +Kelvin Lightner,kelvin.lightner@gmail.com,Intuit,Software Engineer Apprentice,3,3,yes,yes,yes,no,,,,,,,,,,, +Jadzia Thomas,jadzia@jadziahax.com,Twilio,Software Engineering Apprentice,2,3,yes,yes,yes,yes,,,,,,,,,,, \ No newline at end of file diff --git a/db/seeds.rb b/db/seeds.rb index 2feabfd..c036b78 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -11,7 +11,47 @@ Company.destroy_all Interview.destroy_all -FactoryBot.create_list(:skill, 30) -FactoryBot.create_list(:user, 5) -FactoryBot.create_list(:company, 10) -FactoryBot.create_list(:interview, 50) +# FactoryBot.create_list(:skill, 30) +# FactoryBot.create_list(:user, 5) +# FactoryBot.create_list(:company, 10) +# FactoryBot.create_list(:interview, 50) + +def y_n_to_bool(string) + string == 'yes' +end + +json = File.read('db/data.json') +data = JSON.parse(json) + +data.each do |row| + interviewee = User.find_or_create_by(email: row[:email]) do |user| + user.email = row['email'] + user.name = row['name'] + end + company = Company.find_or_create_by(name: row['company_name']) {|company| company.name = row['company_name']} + + + Interview.create( + interviewee: interviewee, + company: company, + job_title: row['position'], + difficulty_rating: row['difficulty_rating'], + experience_rating: row['experience_rating'], + referred: y_n_to_bool(row['referred']), + received_offer: y_n_to_bool(row['received_offer']), + accepted_offer: y_n_to_bool(row['accepted_offer']), + phone_screen: y_n_to_bool(row['phone_screen']), + phone_screen_details: row['phone_screen_details'], + tech_screen: y_n_to_bool(row['tech_screen']), + tech_screen_details: row['tech_screen_details'], + take_home_challenge: y_n_to_bool(row['take_home_challenge']), + take_home_challenge_details: row['take_home_challenge_details'], + onsite: y_n_to_bool(row['onsite']), + onsite_details: row['onsite_details'], + whiteboarding: y_n_to_bool(row['whiteboarding']), + whiteboarding_details: row['whiteboarding_details'], + negotiation_details: row['negotiation_details'], + notes: row['notes'] + ) + +end From 387d308d0c955f672c3ff08be2e163ef6e88d161 Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Fri, 8 Dec 2017 02:31:01 -0800 Subject: [PATCH 43/59] Refactor CompaniesController#index to have full json with associations --- app/controllers/companies_controller.rb | 4 ++-- app/models/company.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/companies_controller.rb b/app/controllers/companies_controller.rb index 62399d4..04f0ea6 100644 --- a/app/controllers/companies_controller.rb +++ b/app/controllers/companies_controller.rb @@ -1,7 +1,7 @@ class CompaniesController < ApplicationController def index - companies = Company.all - render json: companies + companies = Company.includes(:interviews, :skills, :interviewees) + render json: companies.map {|company| company.json_with_association} end def create diff --git a/app/models/company.rb b/app/models/company.rb index bec552d..89499d4 100644 --- a/app/models/company.rb +++ b/app/models/company.rb @@ -13,7 +13,7 @@ def serializable_hash(options = nil) def json_with_association self.as_json(include: { skills: {only: [:id, :name]}, - interviews: {include: :interviewee}, + interviews: {include: {interviewee: {}, company: {}}}, interviewees: {} }) end From 5c37d0da91b9c4c85586b3ff82b0cfec9e9c38b6 Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Fri, 8 Dec 2017 03:24:02 -0800 Subject: [PATCH 44/59] Add access restrictions to all routes except login --- app/controllers/application_controller.rb | 14 +++++++++----- app/controllers/companies_controller.rb | 3 +++ app/controllers/interviews_controller.rb | 7 +++++++ app/controllers/searches_controller.rb | 7 ++++++- app/controllers/skills_controller.rb | 2 ++ app/controllers/users_controller.rb | 2 ++ 6 files changed, 29 insertions(+), 6 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 2e50eb0..3ccc283 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -12,9 +12,13 @@ def logged_in? !!current_user end - def cors_set_access_control_headers - headers['Access-Control-Allow-Origin'] = '*' - headers['Access-Control-Allow-Methods'] = 'POST, GET, OPTIONS' - headers['Access-Control-Allow-Headers'] = '*' - end + def cors_set_access_control_headers + headers['Access-Control-Allow-Origin'] = '*' + headers['Access-Control-Allow-Methods'] = 'POST, GET, OPTIONS' + headers['Access-Control-Allow-Headers'] = '*' + end + + def authorize + render json: {error: "Must be logged in", message: "Login and try again"}, status: 403 if !logged_in? + end end diff --git a/app/controllers/companies_controller.rb b/app/controllers/companies_controller.rb index 04f0ea6..c514f94 100644 --- a/app/controllers/companies_controller.rb +++ b/app/controllers/companies_controller.rb @@ -1,4 +1,6 @@ class CompaniesController < ApplicationController + before_action :authorize + def index companies = Company.includes(:interviews, :skills, :interviewees) render json: companies.map {|company| company.json_with_association} @@ -38,4 +40,5 @@ def destroy def company_params params.require(:company).permit(:name, :location, :website, :tech_field, :has_apprenticeship) end + end diff --git a/app/controllers/interviews_controller.rb b/app/controllers/interviews_controller.rb index 9e9684e..754843f 100644 --- a/app/controllers/interviews_controller.rb +++ b/app/controllers/interviews_controller.rb @@ -1,4 +1,6 @@ class InterviewsController < ApplicationController + before_action :authorize + def index interviews = Interview.includes(:skills, :interviewee, :company) render json: interviews.map(&:json_with_associations) @@ -19,6 +21,11 @@ def create else interview = Interview.new(interview_params) interview.interviewee = current_user + interview.company = Company.find_or_create_by(name: params[:interview][:company]) do |company| + company.name = params[:interview][:company] + end + + if interview.save render json: interview.json_with_associations else diff --git a/app/controllers/searches_controller.rb b/app/controllers/searches_controller.rb index 8c43352..d19ff72 100644 --- a/app/controllers/searches_controller.rb +++ b/app/controllers/searches_controller.rb @@ -1,11 +1,16 @@ class SearchesController < ApplicationController + before_action :authorize + def index searches = Search.all render json: searches end def create - render json: Company.search_name(params[:searchInput]) + companies = Company.search_name(params[:searchInput]).map do |company| + company.json_with_association + end + render json: companies # render json: PgSearch.multisearch(params[:searchInput]) end diff --git a/app/controllers/skills_controller.rb b/app/controllers/skills_controller.rb index c38afcd..97734df 100644 --- a/app/controllers/skills_controller.rb +++ b/app/controllers/skills_controller.rb @@ -1,4 +1,6 @@ class SkillsController < ApplicationController + before_action :authorize + def index render json: Skills.all end diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 3ef4fb9..bf9d4f3 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,4 +1,6 @@ class UsersController < ApplicationController + before_action :authorize + def index users = User.includes(:skills, :interviews, :companies_applied_to) render json: users.map(&:json_with_associations) From 621ebc55ef0b24cc25bfb53c917eb6dab34779fe Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Fri, 8 Dec 2017 04:15:54 -0800 Subject: [PATCH 45/59] Fix bug in seed file preventing users from being created by email --- db/seeds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/seeds.rb b/db/seeds.rb index c036b78..247b334 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -24,7 +24,7 @@ def y_n_to_bool(string) data = JSON.parse(json) data.each do |row| - interviewee = User.find_or_create_by(email: row[:email]) do |user| + interviewee = User.find_or_create_by(email: row['email']) do |user| user.email = row['email'] user.name = row['name'] end From 3581a5015ca7476847a9e42d4db75bfdc8384856 Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Fri, 8 Dec 2017 13:04:28 -0800 Subject: [PATCH 46/59] Change login redirect to go to interview index --- app/controllers/sessions_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index 28abd27..4819978 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -4,10 +4,10 @@ def login if user.valid? token = Tokenize.encode({uid: user.uid, id: user.id}) cookies[:jwt] = {value: token, httponly: true} - redirect_to '/' + redirect_to '/interviews' else flash[:error] = "Login Failed" - redirect_to '/user/info' + redirect_to '/' end end From 4db7c22dc0101fb0b76a11a25175876af9e59c02 Mon Sep 17 00:00:00 2001 From: Josh Leichtung Date: Fri, 8 Dec 2017 15:07:34 -0800 Subject: [PATCH 47/59] Fix bug where users without linkedin photo can't log in --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 46a44e2..759e702 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -21,7 +21,7 @@ def self.find_or_create_from_auth_hash(auth_hash) user.email = auth_hash[:info][:email] # user.description = auth_hash[:info][:description] user.location = auth_hash[:info][:location][:name] - user.photo_url = auth_hash.extra.raw_info.pictureUrls.values[1][0] + user.photo_url = auth_hash.extra.raw_info.pictureUrls.values[1][0] unless auth_hash.extra.raw_info.pictureUrls.values.empty? user.linkedin_url = auth_hash[:info][:urls][:public_profile] # user.linkedin_token = auth_hash[:credentials][:token] # user.linkedin_token_expiration = auth_hash[:credentials][:expires_at] From 7e85ea3b41eb7bb7361d133e6b8a7091e817a159 Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Wed, 20 Dec 2017 17:57:55 -0500 Subject: [PATCH 48/59] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 246006b..8c909a4 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# BootUp-API \ No newline at end of file +# BootUp-API + +BootUp [FrontEnd](https://github.com/DBC-BootUp/BootUp-REACT-FrontEnd/) From 95fe75b4112083e01d7aa5c60d656e0409d8cd44 Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Wed, 20 Dec 2017 18:03:21 -0500 Subject: [PATCH 49/59] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8c909a4..3fd7dd6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # BootUp-API -BootUp [FrontEnd](https://github.com/DBC-BootUp/BootUp-REACT-FrontEnd/) +## BootUp [FrontEnd](https://github.com/DBC-BootUp/BootUp-REACT-FrontEnd/) From c56945a9c22d62c8018c0e33a37bd77dc32ed2a4 Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Wed, 20 Dec 2017 18:03:30 -0500 Subject: [PATCH 50/59] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3fd7dd6..56bc98b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # BootUp-API -## BootUp [FrontEnd](https://github.com/DBC-BootUp/BootUp-REACT-FrontEnd/) +### BootUp [FrontEnd](https://github.com/DBC-BootUp/BootUp-REACT-FrontEnd/) From 460418c4c57da9c77379ffc4dfef8021fbb22737 Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Wed, 20 Dec 2017 22:05:01 -0500 Subject: [PATCH 51/59] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 56bc98b..946cc56 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![BootUpLogo](/src/Images/BootUpLogo2.png "BootUpLogo") + # BootUp-API ### BootUp [FrontEnd](https://github.com/DBC-BootUp/BootUp-REACT-FrontEnd/) From 4627015b7827d72546898ba09180cffd30ed13d8 Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Wed, 20 Dec 2017 22:07:25 -0500 Subject: [PATCH 52/59] Add bootup logo. --- BootUpLogo2.png | Bin 0 -> 17547 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 BootUpLogo2.png diff --git a/BootUpLogo2.png b/BootUpLogo2.png new file mode 100644 index 0000000000000000000000000000000000000000..2e56f89a8b395a3a7eb4f83ea97f8e2446c2e75f GIT binary patch literal 17547 zcmb`vcT`i~w=Wt+0g+-9X;K7KP($w>g@8yCL3$Nw!O(jZr9=WmMCrYE5C}*|KtV(A zBmz=H4+w-3%H4d=Iq!^n@9({F-nsV=#@=M_HP_s0tvS~$pSj*Y(^93OVxaU??5=)&kjLC4Gb6>Wd0N?9B&#}utg#9gjbWG>zmMZe`P&&*?c0`{Kv zev^x=fxgcLU3(&{9h!ZVT3#Eb@IGKCqNj7_v_HUHSs8rdDZv+s1Q-BiG6bU#I?4gd z+d{{|=X`(^1E-;#YW=9$vj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0f@mcfO-1v1pYk(?ay@f|E1OdP89)x)Sz0* J<&Q1j{tr+*bawy% literal 0 HcmV?d00001 From 0480e27f0062b465bbf2880347a0710be406d135 Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Thu, 21 Dec 2017 14:09:24 -0500 Subject: [PATCH 53/59] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 946cc56..3204ab3 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ ![BootUpLogo](/src/Images/BootUpLogo2.png "BootUpLogo") + + # BootUp-API ### BootUp [FrontEnd](https://github.com/DBC-BootUp/BootUp-REACT-FrontEnd/) From c635cea465afd21ae3604636f868dc02a021bf00 Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Thu, 21 Dec 2017 14:09:57 -0500 Subject: [PATCH 54/59] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 3204ab3..26dd7e2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ -![BootUpLogo](/src/Images/BootUpLogo2.png "BootUpLogo") - - + # BootUp-API From 934602cf9e7282341f7e34660396f0a09a5254bd Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Thu, 21 Dec 2017 14:10:40 -0500 Subject: [PATCH 55/59] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 26dd7e2..c6a17fa 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ - + -# BootUp-API +## BootUp-API ### BootUp [FrontEnd](https://github.com/DBC-BootUp/BootUp-REACT-FrontEnd/) From de26a09c410149c3aa6050783b66dac998c1aa6a Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Sat, 23 Dec 2017 18:58:37 -0500 Subject: [PATCH 56/59] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index c6a17fa..37da8d2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ +BootUp [Presentation](https://goo.gl/AoAowQ) + ## BootUp-API ### BootUp [FrontEnd](https://github.com/DBC-BootUp/BootUp-REACT-FrontEnd/) From 54dea85978c9c8c33c27275cc0244b92ad395801 Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Sat, 23 Dec 2017 18:58:53 -0500 Subject: [PATCH 57/59] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 37da8d2..4384ac5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -BootUp [Presentation](https://goo.gl/AoAowQ) +[Presentation](https://goo.gl/AoAowQ) ## BootUp-API From 5d613097692af7f075267094884e5cbefb329528 Mon Sep 17 00:00:00 2001 From: Jenna Ritten Date: Sat, 23 Dec 2017 20:02:14 -0500 Subject: [PATCH 58/59] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4384ac5..38b20ff 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -[Presentation](https://goo.gl/AoAowQ) +[Presentation](https://goo.gl/m2ATPc) ## BootUp-API From 64b89536a81387e787fabfc2b4db58b91b105ebe Mon Sep 17 00:00:00 2001 From: flash00 Date: Mon, 26 Feb 2018 21:48:12 -0800 Subject: [PATCH 59/59] Add link to deployed application --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 38b20ff..fef563f 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ +[See Live](http://dbc-bootup.herokuapp.com/) + [Presentation](https://goo.gl/m2ATPc) ## BootUp-API