Skip to content

Basic React project for displaying a chat log from static data

Notifications You must be signed in to change notification settings

Ada-C18/react-chatlog

 
 

Repository files navigation

React Chat Log

In this project we will use core React concepts to build a chat messenger-style application that displays a log of chat messages between two people, using static data from a JSON file. We will build user interaction with a like feature.

Skills Assessed

  • Building React components that receive data through props
  • Building React container components that pass information to their subcomponents
  • Initializing and using state within a component
  • Passing callback functions to child components and using them to update state
  • Practicing reading and running tests
  • Using git as part of the development workflow
  • Demonstrating understanding of the front-end layer, and the relationship between user interaction and the UI

Project Outline

This project comes with a minimal scaffold based on the baseline React application generated by create-react-app. We provide the JSON file with static chat message data and the CSS styles, and you will need to implement all of the components except for the provided TimeStamp component.

React Chat Log demo

Project Directions

Testing

The tests for this project are a mix of unit tests (Waves 01 and 02) and integration tests (Wave 03). The directions for each wave include a section about the tests for that wave. The unit tests provided for Wave 01 and Wave 02 require us to be prescriptive around component and prop names. The integration tests for Wave 03 allow for more freedom in the implementation details of this wave's feature.

Writing front-end tests is outside the scope of the core curriculum. We provide minimal tests for this project for a few reasons. We can use these tests to partially verify the correctness of our code. Tests support the refactoring process and enforce consistency in implementation details. Additionally, by reviewing these front-end tests, we have some exposure to what unit tests and integration tests look like in front-end testing.

Follow your curiosity to learn more about front-end testing:

About

Basic React project for displaying a chat log from static data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 68.1%
  • CSS 18.6%
  • HTML 11.0%
  • Dockerfile 2.1%
  • Shell 0.2%