Giter VIP home page Giter VIP logo

reddit-clone-2's Introduction

Reddit Clone

Ruby 2.5.1, Rails 5.2.3

https://cryptic-cove-63443.herokuapp.com/

Features

  • Account creation and deletion
  • Sub/Post creation and deletion
  • Comment on posts and comments
  • Vote on posts and comments
  • Embed external web pages (via onebox gem)

Description

Unlogged-in users can view content but can't participate. Registered users can create and moderate subs, post and comment. Posts can belong to multiple subs.

Moderator priveleges

A user marked as a sub's moderator may delete posts and comments on any that appear within their sub/s. This action is available on post#show page only.

Deletion

  • Subs cannot be deleted from the front-end or through the controller.
  • Posts can be fully deleted - including their comments.
  • Deleted comments are reassigned to the deleted account and their content is replaced with 'comment deleted'. This prevents the comment thread from being disrupted. When posts are deleted, comments are destroyed instead.
  • Deleted users will have their account name removed. Any subs, posts, or comments will be assigned to the deleted account with their content intact.

For deletion to work, an accunt named 'deleted' must be created. It doesn't need to be activated.

Comments

There are 2 comment styles available in the app code: classic and flat. The app currently uses flat comments.

Classic comments are similar to Reddit's threaded comments. They have not yet been styled however, though the threading is visible.

The method #formatted_comments can be found in the comments helper.

reddit-clone-2's People

Contributors

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