/facebook-clone

A mini Facebook replica wherein users can add & remove friends; add, read, edit and update Posts & Comments; add & remove likes on posts & comments; receive notifications on friend requests, likes & comments, and see a post feed

Primary LanguageRuby

Maskbook

A Facebook replica wherein users can add and remove friends; create, read, edit and remove posts & comments; create, read, remove likes on posts & comments; receive notifications on friend requests, likes and comments; and see a post feed.

Posts Feed

The database schema is based on seven (7) models User, FriendRequest, Friendship, Post, Notification, Comment and Like.

Schema

Built With

  • Ruby on Rails
  • PostgreSQL
  • RSpec
  • Capybara
  • FactoryBot
  • DatabaseCleaner
  • Faker
  • Shoulda
  • Figaro

Live Demo

This web app is deployed on a free tier of Heroku here.

Prerequisites

You need:

  • Ruby 2.6.1
  • Rails 5
  • PostgreSQL 11+

Setup

$ git clone https://github.com/adriaanbd/facebook-clone.git
$ cd facebook-clone

Install

$ bundle install

Usage

Setup and migrate database

$ rails db:setup
$ rails db:migrate

Development server

$ rails server

Run tests

$ rspec -fd

Authors

Adriaan Beiertz

Maya Douglas

Contributing

Contributions, issues and feature requests are welcome