Git Product home page Git Product logo

lifenovel's Introduction

PRODUCTION README

Lifenovel

Live Site

Lifenovel is a social media website modeled after Facebook. The initial project and its key features were completed within the first 10 days since its conception as of Oct 19, 2018. For future plans of additional features, please see additional planned features.

Sign up page

Homepage

Profile page

Table of Contents

Technologies

Lifenovel is made with rails in the backend and react/redux for the frontend. The data is housed in a Postgresl Sql database.

Key Features

  • User Authentication
    • Signup for an account
    • Log in/Log out
    • Change profile picture
  • Friends
    • Add friends
    • Request friends
    • Accept friend requests
    • View incoming friend requests
    • Remove friends
  • Feed
    • View your friend's activities on the feed
  • Posts
    • Post on your own wall
    • Edit your posts
    • Delete your posts
    • Post on your friends' walls
  • Comments
    • Comment on posts
    • Reply to comments on posts
    • Edit your comments
    • Delete your comments
  • Likes
    • Like/Unlike a post
    • Like/Unlike a comment
  • Search
    • Search a user

Technical Implementation

Comments were implemented with a recursive React Component to allow for recursive commenting. Each comment has a parent_id which specifies the parent comment. Direct comments to posts have a parent_id that is null. The CommentIndexContainer is rendered within each comment to display child comments and filters for only child comments.

// comment_index_container.jsx filters
const mapStateToProps = ({ entities: { comments } }, ownProps) => {
  const { parentId, postId } = ownProps;
  return {
    comments: filterPostComments(comments, postId, parentId),
    total: countPostComments( comments, postId ),
    postId: postId,
    parentId: parentId,
  };
};

// comment_index_item.jsx

{ this.props.comment.child_comment_ids.length > 0 ?
  <div className="child-comments" >
    <CommentIndexContainer postId={ commentable_id } parentId={ id } />
  </div>
: null }

Additional Planned Features

  • Notifications for posts
  • Notifications for comments
  • Notifications for likes
  • Chat/Instant messaging
  • Image posts
  • Uploading images/albums

Credits

A special thanks to the following technologies/resources that made this project possible:

lifenovel's People

Contributors

jli57 avatar

Watchers

James Cloos 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.