Skip to content

carrot-u/instasmart

Repository files navigation

A Q&A Forum for Instacart Employees

Overview

  • Users create questions that are answered by, commented on, and liked by other users.
  • Users can also like answers and comments, and comment on answers.
  • Question authors can mark an answer as "accepted"
  • Authors can edit or delete their questions, answers, and comments, respectively.
  • Users can sort by most recent, most commented, most answered, or most popular (most likes).
  • Users can search the database for matches on question.summary, question.body, and tag_list.

Features

Rails Server and 100% React Client

Polymorphic Comments

Allow users to comment on questions OR answers via @context (another suggestion from Rich on Rails) to determine the association.

def context
  if params[:question_id]
    id = params[:question_id]
    Question.find(params[:question_id])
  elsif params[:answer_id]
    id = params[:answer_id]
    Answer.find(params[:answer_id])
  end
end

@context = context

Likes

  • We integrated Acts As Votable to allow users to upvote questions and answers.

Tags

User Authentication

About

Carrot University Code School class project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors