Code Monkey home page Code Monkey logo

nuffsaid's Introduction

Nuffsaid Front End Coding Challenge By Chris Krajewski

Contribution

I've collected a list of Improvements that need to be done. If you'd like to help by contributing to the project, you're more than welcome to!

Install and run

First clone the repository:

git clone https://github.com/ckrajewski/Nuffsaid

Open a terminal and cd into the Nuffsaid folder. Then:

  1. npm install
  2. npm start

Open a tab in your browser and navigate to http://localhost:3000 where the website will be running!

Running Tests

Open a terminal and cd into the Nuffsaid folder. Then:

  1. npm test

Your terminal will scan through and run the tests in the test directory using Jest

Looking at the code

To take a close look at the front end code (React) feel free to use any text editor i.e. Sublime/Atom. Here's not the time to argue which is better :)

The Acceptance Criteria Checklist

  • used React hooks
  • wrote some Jest tests using snapshots
  • Messages rendered in a table-like structure. The newest messages appear at the top of their respective columns.
  • Messages color-coded depending on the priority of the message. see utils.js
  • Each time a message with the priority level of error is received, a snackbar containing the error message appears at the top of the application. The error disappears:
    • in 2 seconds
    • when another error message takes its place
    • when the user clears it via the provided button within in the error message.
  • A user can clear all messages at any point.
  • A user can clear a specific message in a specific column
  • A user can start and stop incoming messages. The start/stop button updates depending on the state of the feed. The default state is start, with messages coming in
  • There is a count of specific messages in each column
  • Used Material-UI components and JSS styles.

Feedback

In case you have any comments, questions, bugs, enhancements feel free to open an issue in this repository.

Improvements

  • Add better error handling
  • Make more comprehensive tests
  • Add more configurability to components

Sample Screenshots of Project

Screen with Messages Coming In

Messages Coming In

Cleared State

Cleared State

Error Message Snack Bar Ontop of Screen

 Error Message Snack Bar

Screen with No Messages Coming In (Stopped)

No Messages Coming In

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.