Code Monkey home page Code Monkey logo

fakebook's Introduction

Fakebook

Fakebook live

Connect with family, friends, and the world with Fakebook, a Facebook-inspired single-page app built on Ruby on Rails and React/Redux. Fakebook is a social media platform on which one can interact with other users and speak one's mind. A user can post a status to their profile, write posts to their friends, add and remove friends, and like comments.

homepage

Feature Highlights

profile1

The Wall, Feed, Posts, and Comments

wall

On Fakebook, the posts on a user's profile (the wall) and the posts seen on the homepage (the feed) are built using the same components; the appropriate posts are filtered based on the logged in user, the user's friends, and the posts the user's friends have received. Additional render information at the specific location for each PostsAllComponents component is specified by the type prop.

// in the profile component, which renders a user's profile
class Wall extends React.Component {
    render() {
        return (
            <div className="wall">
                <PostsAllComponents 
                    type={"Wall"}
                    // additional props passed down with names agnostic to parent component
                />
            </div>
        )
    }
}

// Feed component, which renders the feed one sees upon login.
class Feed extends React.Component {
    // ...
    render() {
        return (
            // ... 
            <PostsAllComponents
                type={"Feed"}
                // additional props passed down with names agnostic to parent component
            />
            // ...
        )
    };
}

The wall and the feed are populated with posts; users can like and comment on posts. Additionally, users can like comments. Authors of posts or comments can edit or delete their content; receivers can delete posts and comments they do not want.

With Amazon Web Services integration, users can also post images.

Profiles

profile2

The wall is just one component of the profile. A profile displays a user's profile picture, banner picture, user introduction, and location information. Additionally, the one's profile hosts links to one's Fakebook friends.

Friendships

friends

Users can send friend requests to other users; once approved, users can see each others' walls, write posts to each other, and like content. Users can also remove friends, at which point users no longer can interact with each other.

Technologies Used

  • Ruby on Rails
  • PostgreSQL
  • JavaScript (ES6)
  • React.js
  • Redux
  • HTML
  • CSS
  • Amazon Web Services (AWS)

Future Implementations

WIP features inlude:

  • Receiving notifications via the navbar
  • Accepting friends via the navbar
  • Listing users who liked posts or comments
  • Allow users to respond to comments
  • Messaging for users

fakebook's People

Contributors

dlande000 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.