Giter Site home page Giter Site logo

suvi277 / react-seequestor-coding-test Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 243 KB

This repository is a simple web application that renders a series of articles along with info about the author and comments in React App using given sample.json

Home Page: https://react-seequestor-coding-test.herokuapp.com/

HTML 7.28% JavaScript 91.13% CSS 1.59%
react node express react-testing-library styled-components

react-seequestor-coding-test's Introduction

Live demo of this app is deployed on https://react-seequestor-coding-test.herokuapp.com/

SeeQuestor Coding challenge

  • This repositiory is a simple web application that renders a series of articles along with info about the author and comments in React App using given sample.json
  • Initially it loads first five articles from data and pagination is added to view other articles so that it renders seamlessly
  • Each article will render Show Comments (<no. of comments>) action.
  • Initially comments are hidden for each Comments
  • First three comments of each arcticle will be shown on click of Show Comment action of the particular Article. And Comments of other Articles will be hidden
  • If Comments length are more than three, then Show More action will appear.
  • And next three comment will be rendered on click of Show More
  • On click of Show More, Show Less action will appear, to show less comments on click of the action

About the app

Actually, there are two separated apps. The client which serves the FrontEnd (using React) built using create-react-app, and the server API (in Node/Express).

How to run the App

  1. git clone https://github.com/suvi277/react-seequestor-coding-test.git
  2. cd react-seequestor-coding-test.git
  3. Run npm run build
  4. Run npm start to start the app.
  5. open your browser in http://localhost:4000/

Run client and server separately

How to run the Server

  1. In your terminal, navigate to the server directory.
  2. Run npm i to install all dependencies.
  3. Run npm start to start the server.

How to run the Client

  1. In another terminal, navigate to the client directory.
  2. Run npm i to install all dependencies.
  3. Run npm start to start the app
  4. Run npm test to test the client app

Check if they are connected

With the two apps running, open your browser in http://localhost:3000/. to view the list of Articles

react-seequestor-coding-test's People

Watchers

James Cloos avatar Suvarna Mondal 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.