Skip to content

MaxLR/InvestmentsWithFriends

Repository files navigation

Investments With Friends

home

Investments With Friends

Summary

Investments With Friends is a single-page web application that was inspired by Facebook, and built using Ruby on Rails utilizing React.js/Redux architecture. Investments With Friends allows users to:

  • Create an account
  • Log in / Log out
  • Upload profile/cover photos
  • Send, receive, and respond to friend requests
  • Create posts on their own page, as well as their friend's
  • Comment on posts

Overall Structure

Back end

The app was built using Ruby on Rails on the back end with a postgreSQL database. Back end structure is RESTful and all the data requests use AJAX and are fulfilled with a JSON API. Associations are used to prefetch data in order to minimize SQL queries to the database.

Front end

The front end is built completely in React.js and JavaScript and utilizes React's Redux architecture. React's virtual DOM allows for lightning-quick re-rendering without requiring new pages to be sent from the server.

Libraries

Investments With Friends uses:

Primary Components

User Authorization

User authentication is handled in Rails using BCrypt for password hashing. Passwords entered are not saved to the database, only encrypted hashes. When users log in, the password they provide is rehashed and compared with the original password hash to verify credentials.

home

Profiles

Investments With Friends allows users to customize their profiles by uploading personal profile and cover photos.

user-profile

News Feed

The News Feed allows users to keep up to date with their friends in real time. The list is populated with the most recent posts, either posted by, or on the user's friends.

feed

Posts

Posts allow users to say what's on their mind as well as keep in touch with their friends. Users are able to post status updates on their own pages as well as post on their friend's pages.

Comments

Investments With Friends users can respond to posts with their own comments

comment

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published