Coder Social home page Coder Social logo

cineherd's Introduction

#CineHerd team: Dan, Lloyd, Luisa, Chae

Our trello board is hosted at: https://trello.com/b/1ObtqHqL/stackexchange

Please take a second to look over all of our cards and comments—

We'd like to add response functionality for our posts. There's a small catch—our schema is such that responses and posts are designed to be the same object. The main post for any given thread should have a parent_id and a root_id attribute that are set to nil.

Any direct responses to that post (say, the post with post_id of 1) should have a root_id and parent_id set to reference that post (1). (Let's assume our response has a post_id of 2)

Any comments to THAT response should have a parent_id set to reference the response's post_id (2) and a root_id set to the post_id of the root post (1).

POST 1 (ROOT) post_id: 1 root_id: nil parent_id: nil

POST 2 (DIRECT RESPONSE) post_id: 2 root_id: 1 parent_id: 1

POST 3 (COMMENT TO DIRECT RESPONSE) post_id: 3 root_id: 1 parent_id: 2

User signup page exists, but it isn't currently linked to from the root or navbar. Navigate directly there with:

localhost:3000/users/new

cineherd's People

Contributors

chaeokay avatar danapczynski avatar lbeck avatar dbc-apprentice avatar llnimetz avatar

Watchers

James Cloos avatar Eva Gabriela avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.