Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
89543d9
Initial Rails setup
shirley1chu Apr 22, 2019
628c0cf
set up works attribute data types
shirley1chu Apr 22, 2019
3490aee
seeded database, created view for work#index
shirley1chu Apr 23, 2019
4da7bf9
added views for show and homepage, created navbar
shirley1chu Apr 25, 2019
42c98da
finished restful actions, edit and new forms
shirley1chu Apr 25, 2019
80eb9ac
added works controller tests
shirley1chu Apr 25, 2019
eaaf039
passed workcontroller tests
shirley1chu Apr 25, 2019
95d9bb5
wrote work model validation tests and passed tests!
shirley1chu Apr 25, 2019
827442b
added spotlight tests and passed
shirley1chu Apr 25, 2019
e55a693
wrote and passed work category tests
shirley1chu Apr 25, 2019
043d733
login, log out, login_form, current methods for user
shirley1chu Apr 26, 2019
957842e
got login flash messages to work
shirley1chu Apr 26, 2019
4181b8e
fixed data setup in works controller test
shirley1chu Apr 26, 2019
eeb675b
login requires username
shirley1chu Apr 26, 2019
8f8adc1
added logout buttons
shirley1chu Apr 26, 2019
9b155c1
made create vote method
shirley1chu Apr 26, 2019
f35d1fe
wrote user controller tests and passed, added user index view
shirley1chu Apr 27, 2019
5a49c1a
user model validation tests written and passed
shirley1chu Apr 27, 2019
68a7c2c
wrote and passed votes controller tests
shirley1chu Apr 27, 2019
fe48465
wrote and passed vote model validation tests
shirley1chu Apr 27, 2019
fe72d24
started revising top_ten method for work model
shirley1chu Apr 27, 2019
632f219
passed top ten and spotlight methods
shirley1chu Apr 29, 2019
75ec803
fixed paramter in top ten method
shirley1chu Apr 29, 2019
b80d29a
complete user views
shirley1chu Apr 29, 2019
cae3422
got rid of require pry
shirley1chu Apr 29, 2019
4e3e003
ridded final pry
shirley1chu Apr 29, 2019
aa221d5
added new line to application.js
shirley1chu Apr 29, 2019
d222897
changed time display on users page
shirley1chu Apr 29, 2019
2203380
fixed typo
shirley1chu Apr 29, 2019
3d1c7e2
added css styling
shirley1chu Apr 29, 2019
c75b61d
finished styling and passed all tests
shirley1chu Apr 30, 2019
4e27494
adjusted user show page
shirley1chu Apr 30, 2019
b71be75
added owl icon as favicon
shirley1chu Apr 30, 2019
70e328d
owl icon
shirley1chu Apr 30, 2019
c9f6b1a
added redirect_back to upvote
shirley1chu Apr 30, 2019
15ef685
fixed typo in top view
shirley1chu May 1, 2019
1e7b9ba
Create .travis.yml
shirley1chu May 15, 2019
ecf02b7
Update .travis.yml
shirley1chu May 15, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .env
Empty file.
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.
/.bundle

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore uploaded files in development
/storage/*
!/storage/.keep

/node_modules
/yarn-error.log

/public/assets
.byebug_history

# Ignore master key for decrypting credentials and more.
/config/master.key
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby-2.5.1
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: ruby

rvm:
- 2.5.1

services:
- postgresql

before_script:
- bin/rails db:create
- bin/rails db:migrate

script:
- bin/rails test
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug Local File",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${file}"
}
]
}
81 changes: 81 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.5.1'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.3'
# Use postgresql as the database for Active Record
gem 'pg', '>= 0.18', '< 2.0'
# Use Puma as the app server
gem 'puma', '~> 3.11'
# 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 'mini_racer', platforms: :ruby

# Use CoffeeScript for .coffee assets and views
# gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# 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', '~> 4.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use ActiveStorage variant
# gem 'mini_magick', '~> 4.8'

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

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.1.0', require: false

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 interactive console on exception pages or by calling '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

group :test do
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 2.15'
gem 'selenium-webdriver'
# Easy installation and use of chromedriver to run system tests with Chrome
gem 'chromedriver-helper'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

gem 'jquery-rails'
gem 'jquery-turbolinks'
gem 'bootstrap', '~> 4.1.3'
group :development, :test do
gem 'pry-rails'
end

group :development do
gem 'better_errors'
gem 'binding_of_caller'
gem 'guard'
gem 'guard-minitest'
end

group :test do
gem 'minitest-rails'
gem 'minitest-reporters'
end
Loading