Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
6a66a44
add comments controller
Jun 6, 2014
977b4ff
add comment view for rendering the form
Jun 6, 2014
563b2e3
added new and create actions in comments controller
Jun 6, 2014
46abeed
add find_commentable method
Jun 7, 2014
799bb91
added fake questions to see if comment can work
Jun 7, 2014
d956b44
more fake questions
Jun 7, 2014
a8c2c6d
more question view
blooies Jun 7, 2014
ae18fad
javascript progress
blooies Jun 7, 2014
237bd5f
work on javascript for comment
blooies Jun 7, 2014
07d2586
Added index and show controller actions along with corresponding view…
sbeverly Jun 7, 2014
04a85fe
commented out Questions#new because new question is created from the …
sbeverly Jun 7, 2014
3a3a8fe
added ability to edit existing questions
sbeverly Jun 7, 2014
f862b0b
change form_for on index page to use short form syntax
sbeverly Jun 7, 2014
1c09f67
updated index view with edit and delete links(delete not yet function…
sbeverly Jun 7, 2014
24a4aea
added files
Jun 7, 2014
d1fb20e
deleted old files
Jun 7, 2014
a80efcf
renamed dbcoverflow
Jun 7, 2014
73b9fb1
fixed spelling on user features spec
Jun 7, 2014
48f588c
updated user features spec
Jun 7, 2014
b276f99
removed password length validation from user feature spec
Jun 7, 2014
1d69a9e
removed untitled file
Jun 7, 2014
0932e47
add individual factory files
Jun 7, 2014
bcef0ff
added delete functionality
sbeverly Jun 7, 2014
90fc6cf
complete validation testing in user model spec
Jun 7, 2014
ffa160c
added edit, update, delete routes in controller
Jun 7, 2014
dc07616
add updated and delete testing to feature user spec
Jun 7, 2014
eb51b5b
updated user form to include password field
Jun 7, 2014
908824f
completed edit and delete feature testing in user feature spec
Jun 7, 2014
b9f02eb
added user controller testing for edit, epdate, and delete
Jun 7, 2014
a84d7c1
add comment form on a question
blooies Jun 7, 2014
54ac942
delete QuestionsController#new (was commented out anyway)
sbeverly Jun 7, 2014
d795f45
alter Question#show to display comments for questions and answers
sbeverly Jun 7, 2014
24ae715
creates comment but trying to link to question using polymorphic
blooies Jun 7, 2014
8bb1874
fixed user controller spec
Jun 8, 2014
e1dd0b0
fixed PATCH action in user controller spec
Jun 8, 2014
233860b
user controller spec complete
Jun 8, 2014
adfd271
add Questions controller tests
sbeverly Jun 8, 2014
adf3f93
comment form for question works- saves comment in database, as well a…
blooies Jun 8, 2014
cf83d43
merged with alex who was handling user
sbeverly Jun 8, 2014
04129b0
comment out controller tests that dont have a controller created yet
sbeverly Jun 8, 2014
0ac961f
merged with beverly
sbeverly Jun 8, 2014
6e6ed81
fixed comments form
blooies Jun 8, 2014
8e7e819
add stub and stuff on fake q page
blooies Jun 8, 2014
42b79b5
removed duplicate faker gem
Jun 8, 2014
32367d4
Merge pull request #1 from xander-f/user_testing
Jun 8, 2014
4f4909f
Merge pull request #2 from xander-f/user_testing
Jun 8, 2014
9dd25f7
updated user feature tests after merge
Jun 8, 2014
700741c
updated question model spec
Jun 8, 2014
1a6c71b
after creating a new user - redirect to questions index page
Jun 8, 2014
bd2e958
added votes feature testing
Jun 8, 2014
6343b5a
add votes controller
Jun 8, 2014
5c2be63
add votes controller
Jun 8, 2014
b9c3c6d
updated votes spec to account for voting form
Jun 8, 2014
35dc615
add vote up and vote down form templates
Jun 8, 2014
7cd7740
add vote up and vote down in view
Jun 8, 2014
9b75fdf
add sessions controller
Jun 8, 2014
38f96c0
edited question view
Jun 8, 2014
d88f8f1
Merge pull request #3 from xander-f/votes_testing
Jun 8, 2014
5520178
add session functionality in session controller
Jun 8, 2014
f928158
add session funtionality in session controller and app controller
Jun 8, 2014
31b5bf1
add sessions routes
Jun 8, 2014
873f283
made custom method to show comment instead of having it on the index …
blooies Jun 8, 2014
d4b1d14
add user login functionality - auth not working
Jun 8, 2014
af64a68
add login/logout functionality
Jun 8, 2014
d246acc
removed session[:user_id] when a user deletes him/herself
Jun 8, 2014
9a89c20
Merge branch 'sessions'
Jun 8, 2014
91b23c0
Merge pull request #4 from xander-f/sessions
Jun 8, 2014
2b86235
remove unused form
Jun 8, 2014
3fb1635
Merge branch 'master' of https://github.com/xander-f/dbcoverflow
Jun 8, 2014
34ff02d
add empty AnswersController
sbeverly Jun 8, 2014
f2262c4
Merge branch 'master' of https://github.com/xander-f/dbcoverflow into…
sbeverly Jun 8, 2014
987090e
removed votes controller
Jun 8, 2014
01b0817
add voteup and votedown methods in questions_controller
Jun 8, 2014
4523eda
removed votes routes from config routes file
Jun 8, 2014
5e49783
added upvote and downvote routes for questions
Jun 8, 2014
35d67b9
remove up/down vote forms for questions
Jun 8, 2014
5d62bdd
add upvote / downvote links in question show view
Jun 8, 2014
4092590
add vote count in question show page
Jun 8, 2014
d5bc992
changed default vote score to 1 rather than 0
Jun 8, 2014
77e6657
added logged_in? method in questions controller to see if a user is l…
Jun 8, 2014
677cefe
add ability to answer a question if logged in
sbeverly Jun 8, 2014
4777772
changed vote score default back to 0
Jun 8, 2014
438cdab
user validation for vote no longer required
Jun 8, 2014
2ce1e3c
removed logged_in? method from user controller
Jun 8, 2014
76a1bb5
added vote up and vote down functionality for questions
Jun 8, 2014
28a29a8
Merge pull request #5 from xander-f/votes
Jun 8, 2014
590d2ff
comments work for both question and answer. shows comment form when c…
blooies Jun 8, 2014
b7a8d8e
add answer delete functionality
sbeverly Jun 8, 2014
22d5797
add vote.js file
Jun 8, 2014
5a7c8e5
use reset_session instead of session[:user_id] = nil
sbeverly Jun 8, 2014
d18acb3
moved edit and delete links to questions#show view
sbeverly Jun 8, 2014
5f46c8e
add fixed nav bar with css styling
blooies Jun 8, 2014
8d19662
dbc overflow logo is a link but stays blue color
blooies Jun 8, 2014
81b0158
removed vote.js file
Jun 8, 2014
80975b4
removed vote.js.file
Jun 8, 2014
fbec0d5
merged with alex
sbeverly Jun 8, 2014
2acd808
Merge branch 'siyan' of https://github.com/sbeverly/dbcoverflow
Jun 8, 2014
510e00a
add upvote and downvote functionalityon answers controller
Jun 8, 2014
4f7eecc
fix merge conflicts with siyan branch
blooies Jun 8, 2014
ea50a04
resolved merge conflict
Jun 8, 2014
5cdc03e
fixed answers controller
Jun 8, 2014
b3914f5
Added documentation and contributing developers to README
femmestem Jun 8, 2014
73f863e
fixed signup nav bar stuff
Jun 8, 2014
fdb3eea
Merge branch 'master' of https://github.com/xander-f/dbcoverflow
femmestem Jun 8, 2014
647dce0
Add documentation and credit to contributing developers
femmestem Jun 8, 2014
c5bb251
Add Bootstrap styles
femmestem Jun 8, 2014
0ca38bd
removed unecessary form file
Jun 8, 2014
0232359
changed login button to read login
Jun 8, 2014
35d3937
update user model to authenticate against username rather than email
Jun 8, 2014
4ac2042
fixed user authentication in user model
Jun 8, 2014
88e9d45
add login errors if incorrect user authentication
Jun 8, 2014
784a867
Merge pull request #6 from xander-f/user_login
Jun 8, 2014
951775f
removed unused form
Jun 8, 2014
e8ef0a9
Merge branch 'master' of https://github.com/xander-f/dbcoverflow
Jun 8, 2014
734dea3
Modified Google fonts link to use Rails conventions
femmestem Jun 8, 2014
0d4e209
took out extra answers resource in routes.rb
sbeverly Jun 8, 2014
afa1a50
Merge branch 'master' of https://github.com/xander-f/dbcoverflow into…
sbeverly Jun 8, 2014
023deab
fix seed file and uncommented row in Answer model
sbeverly Jun 9, 2014
23a7c37
add bootstrap styling to index page
sbeverly Jun 9, 2014
3cdc3c1
add minimal nav bar styling
sbeverly Jun 9, 2014
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
67 changes: 65 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,65 @@
dbcoverflow
===========
# DBC OVERFLOW
A functional clone of Stack Overflow.

## QUICK START
Run `$ bundle install`

Run `$ rake db:setup` or `$ rake db:create:all`

To run Capybara tests in Chrome instead of its default browser (Firefox), see testing section at bottom.

## WORKING CONTRACT

- Create schema as a group
- Any modifications to the schema should be decided as a group
- Create MVC skeleton
- Delegate responsibilities and make a contract as to what the expected data structure will look like between them; use mocks/stubs until feature team receives real data

## HOW TO CONTRIBUTE

- Each contributor forks from DBC Overflow master

- Create new branch for each feature or bug fix on your fork

- Commit changes to your local repo (Git)

-- `$git commit -m "message" `

- Rebase from DBC Overflow master (for most accurate commit history)

-- `$git pull --rebase upstream master`

- Push your feature branch to your fork

-- `$git push origin feature-branch-name`

- Submit a pull request to Stack Overflow master on Github

-- Someone who did not write your code should review your code and merge


## TESTING

To make Chrome the default browser for Capybara instead of Firefox

http://chromedriver.storage.googleapis.com/index.html

Move extracted `chromedriver` to `/usr/bin/`

and make executable by running:

```bash
$ sudo chmod +x /usr/bin/chromedriver
```

## DEVELOPERS

Please thank our well-respected developers:
- Beverly Mah
- Christine Feaster
- Siyan Beverly
- Alexander Frankel
- Neal Fennimore
- Reid Covington
- Insung Lee
- Justin Phelps
5 changes: 3 additions & 2 deletions dbcoverflow/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ group :doc do
end

# Use ActiveModel has_secure_password
gem 'bcrypt-ruby', '~> 3.1.2'
gem 'bcrypt', '~> 3.1.7'
gem 'bcrypt-ruby'

# Use unicorn as the app server
# gem 'unicorn'
Expand All @@ -47,11 +48,11 @@ gem 'bcrypt-ruby', '~> 3.1.2'
group :development, :test do
gem "rspec-rails", "~> 2.14.0"
gem "factory_girl_rails", "~> 4.2.1"
gem "faker", "~> 1.1.2"
gem 'shoulda-matchers', "~> 1.5.4"
end

group :test do
gem "faker", "~> 1.1.2"
gem "capybara", "~> 2.1.0"
gem "database_cleaner", "~> 1.0.1"
gem "launchy", "~> 2.3.0"
Expand Down
3 changes: 2 additions & 1 deletion dbcoverflow/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ PLATFORMS
ruby

DEPENDENCIES
bcrypt-ruby (~> 3.1.2)
bcrypt (~> 3.1.7)
bcrypt-ruby
capybara (~> 2.1.0)
coffee-rails (~> 4.0.0)
database_cleaner (~> 1.0.1)
Expand Down
3 changes: 1 addition & 2 deletions dbcoverflow/app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require_tree .
//= require_tree .
6 changes: 6 additions & 0 deletions dbcoverflow/app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@
*= require_self
*= require_tree .
*/


require_normalize.css
require_bootstrap.css
require_navbar.css
require_comments.css
Loading