Skip to content

React Application to show the concept and implementation of nested comment threads. Covers only Front-end part (Back-end code @ https://github.com/manishekaneja/comment-thread-node-poc)

Notifications You must be signed in to change notification settings

manishekaneja/comment-threads-react-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fullstack Assignment

Problem Statement

To Build a Commenting System with following features

  • User can make a Comment in this system.
  • Ablity to comment on any available post.
  • Ability to Edit it's Comment, after being posted.

Major Tasks

  • To Keep a Record of a Comment
  • To Keep Record of replies to any Comment
  • To keep Record of User commenting on the Platform.

Features

  • Every User has ability to like or dislike any comment, and that doesn't require login ore register step.
  • Anyone can like or dislike any number or times.
  • Users are notified for most of the Actions.

Solution

To provide a solution to this problem. I have used follow majorly javascript technologies:

  • For Front-end
  • React JS
  • Material UI
  • Apollo Client
  • GraphQL

Basic Requirement to run this Solution on a System is Node JS, which includes npm, npx (Node JS is required to download the packages from store and initiate the Project)

How to Run The Code

Clone the Repository or Download as zip This is only to run the Frontend

Perform the following instructions

cd webapp/
To install Dependencies
npm install
Or
yarn

To Run Server

npm start

Or

yarn start

Server Will Run on Port 3000 , make sure to keep it free.

Explantation

This is a single Screen Application which includes a Header and Body Section Header has only two major Functions ( To provide User with Login and Register Features ) Body Consist of All the Post/Comment, which are visible to every person but only a logged in Person can make changes in the System. Excluding the like and dislike changes. Only a logged in user can reply to any Comment and edit a comment ( if posted by him only ) Security Level of users is kept minimal for prototype purpose

Code Overview

Frontend is build using create-react-app boiler plate and all the code is present in src . Code is emphasised to use hooks of React JS in a proper manner. This Directory also consist of 2 Sub-Directories ( API; Components;) Api folder consist of Apollo Client and GraphQL Queries Components folder consist of All The Componets made in this application (That is for Login, Comments,etc.)

By default appliction will fetch from localhot:4000

About

React Application to show the concept and implementation of nested comment threads. Covers only Front-end part (Back-end code @ https://github.com/manishekaneja/comment-thread-node-poc)

Topics

Resources

Stars

Watchers

Forks