8000 GitHub - prannulu/react-chatlog: Basic React project for displaying a chat log from static data
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

prannulu/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:


Concluding thoughts by Pavi

This is the first project in React that I got to work on. I enjoyed the challenge of exploring Front-End programming, and implementing my own design decisions. I deviated from the guidelines slightly to create something that reflected my personality and cretivity.

Some key differences were the color scheme, title and the "like" button appearence (I used eggs and chicks instead of white and red hearts).

Pavi's React Chat Log

The last difference resulted in some built-in tests failing, so I had to change those to match my style choices. This gave me the opportunity to explore a new testing environment, and I was able to catch a bug that caused my classmates tests to fail as well.

This project helped me realize that I thoroughly enjoy front-end development, especially because it allows for greater creativity and experimentation.

To run this project on your local server, clone this repository and enter "yarn start" in the terminal once you are in the repo.

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 71.5%
  • CSS 17.5%
  • HTML 9.1%
  • Dockerfile 1.7%
  • Shell 0.2%
0