Coder Social home page Coder Social logo

leosoaivan / top_ror_odinfb Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 341 KB

A simplified Rails clone of the popular social network

Home Page: https://lpsv-odinbook.herokuapp.com

Ruby 72.01% JavaScript 1.00% CSS 3.64% HTML 22.66% CoffeeScript 0.70%
rails postgresql bootstrap self-referential-association

top_ror_odinfb's Introduction

Odin Facebook

Odin Facebook is the final project of The Odin Project's Rails curriculum. The assignment can be found here. The project is live via Heroku here

The primary challenge was configuring the user associations, given that, in a symmetrical, Facebook-style relationship, a user can be either a user requesting a friendship or a user receiving a friendship request.

This project was also the first opportunity I had to play around with Devise, which is a beast in and of itself.

Getting Started

N/A

Prerequisites

N/A

Installing

N/A

Running the tests

  1. Make sure you have RSpec installed

    gem install rspec

  2. Run the tests!

    $ rspec

Deployment

N/A

Built With

To-Do

  1. Add testing for Mailer

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Versioning

  • Ruby 2.4.1
  • Rails 5.0.2

Authors

  • LPSV

License

N/A

Acknowledgments

top_ror_odinfb's People

Contributors

leosoaivan avatar

Watchers

 avatar  avatar

Forkers

sch94

top_ror_odinfb's Issues

Non-confirmed friends appear in feed

Subject of the issue

Non-confirmed users (users that have sent primary user a friend request) appear on primary user's feed.

Steps to reproduce

  1. Log in to user 1 and send a request to user 2
  2. Log out of user 1
  3. Log in to user 2 and navigate to user 2's profile

Expected behaviour

User 1 should not show up on user 2's feed in the profile without being confirmed.

Actual behaviour

User 1 appears on user 2's feed in the profile without being confirmed.

Incorrect flash messages following FriendshipsController actions

Subject of the issue

Incorrect/inaccurate flash messages when sending a friend request and deleting friend requests. The corresponding flash messages are worded as though a user is adding or deleting actual friends.

Steps to reproduce

After navigating to users/index:

  1. Click on button 'Request Friend' to see the corresponding flash.
  2. Click on button 'Delete Request' to see the corresponding flash.

Expected behaviour

  1. The flash should say something like 'Friend request has been successfully sent.'
  2. The flash should say something like 'Friend request successfully deleted.'

Actual behaviour

  1. The flash reads 'Added friend.'
  2. The flash reads 'You've unfriended someone.'

Infinite scrolling for posts (and comments?)

When signed in, a user should be able to scroll infinitely through portions (10 posts? 15 posts?) of all posts, including those in a user's feed, on a user's profile, and on other users' profiles. Currently, they load all at once when called via User.feed.

For comments, infinite scrolling would make it too difficult to scroll through posts while on the feed, as the comments expand from each individual post. Infinite scrolling for comments would have to be implemented on individual post#show pages.

Double friending

Currently, when two users friend each other and both accept the request, it results in two active friendships between the users. This is because a friendship consists of user (request sender) and friend (request receiver) IDs.

In this particular scenario, the resulting friendships might look like this:

Friendship(id: 1, user_id: 1, friend_id: 2)
Friendship(id: 2, user_id: 2, friend_id: 1)

The two resulting friendships, while both referring to the same users, are still considered valid and unique.

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.