No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is even with sf-wdi-47:master.
Latest commit d09cb15 Oct 23, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Update README.md Oct 23, 2018

README.md

Django Reddit Clone Challenge!

We are going to spend the weekend creating a clone of the message board site / forum / garbageheap site Reddit. Your Django application should have the following:

Models:

  1. User (standard Django auth user)
  # User Model
    email
    password
    username
  1. Profile: a user has one profile (User - Profile )
  # Profile Model
    profile_pic
    user (FK)
  1. Posts: a post has one User
  # Post Model
  created_at
  title
  picture
  content
  site_url
  vote_total
  user (FK) 
  1. Comments: a post has many comments
  # Comment Model
  created_at
  content
  vote_total
  user(FK)
  post(FK)
  1. Save: a user has many Saves with Post as a foreign key ( User < Save > Post )
  # Save Model
  user(FK)
  post(FK)
  created_at
  1. Post_Votes: a post has many post_votes through Users ( User < Post_Votes > Post )
  # Post_Vote Model
  user(FK)
  post(FK)
  value ( choice of -1 or +1)
  1. Comment_Votes: a comment has many comment_votes through Users ( User < Comment_Votes > Comment )
  # Comment_Vote Model
  user(FK)
  comment(FK)
  value ( choice of 1 or +1)
  1. Comments on Comments: a comment has many comments (Comment < Comment )
  # Comment Model
  +comment(FK)
  1. Moderator: A user can be a moderator (User Moderator)
# Moderator Model
  user(FK)

Views:

Sprint 1: MVP

  1. All posts (posts)
  2. View 1 Post w/ comments (posts/<int:pk>)
  3. Registration
  4. Login
  5. Create Post (posts/new)
  6. Create Comment (associated with a post) (posts/<int:pk/comments/new)

Sprint 2: Gettin Trolly

  1. Add Votes for Post (jquery feature)
  2. Add Votes for Comment (jquery feature)
  3. Save Posts (jquery feature)
  4. View Saved Posts (user/<int:pk>/saved)
  5. Create Comment on Comments (posts/<int:pk>/comments/<int:cpk>/new)

Sprint 3: Wrangling the Herd

  1. Add moderation
  2. subreddits? lol, good luck