Giter VIP home page Giter VIP logo

reactnd-project-readable-starter's Introduction

Miguel's Readable app

This is my project submission for the React Nanodegree module 2: React+Redux

Below you will find instructions for installing and running the project.

Note: I wanted to extend functionality just a bit, more on that below.

Changes to the original project

  1. You can reply to comments, and they will be shown nested below its parent's comment.
  2. Instead of removing comments (e.g disappearing), when you delete a comment it will change its body to [deleted] to mimic reddit's behavior somewhat. The property "deleted" will still be set to true, but I don't filter them out of the comment thread, instead just modify their body to show "[deleted]" replacing the old comment. Of course, in real life the old comment body would not be replaced for auditing purposes. The reason for this [deleted] behavior is mostly because I implemented threaded comments, so deleting a parent comment would also make all child comments disappear. I hope this is ok for this project.
  3. In line with previous list item, I made it so deleted comments don't count to the post's commentCount. So a deleted comment will be shown as "[deleted]" but will also trigger a re-count of post's commentCount. Also, deleted comments won't allow to vote on them or reply them.

Installing

API Server

To install and start the API server, run the following commands in this directory:

  • npm install
  • node server

Frontend

This project was bootstrapped with Create React App.

  • npm install
  • npm start

reactnd-project-readable-starter's People

Contributors

ayoalik avatar forbiddenvoid avatar jamesbibby avatar miguelguadarrama avatar nomemoryerror avatar richardkalehoff avatar thalescomp avatar

Watchers

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