jeanp / ddle-chat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Approach

  1. setup basic project structure w/ create react app
  2. create UI components and layout
  3. start integrating with api (fetch all and send)
  4. refactoring on styles
  5. clean up code

technical debts

  1. incoming messages? (this wasnt very clear for me if was a use case)
  2. probably would need some kind of "load old messages" logic when scroll to the top / not loading all messages at once
  3. error handling
  4. token/"author" storage - this is hard coded on api file, in a real scenario i would store this this and use a request interceptor to add on headers on every request
  5. retry when failling sending message

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

About


Languages

Language:JavaScript 88.5%Language:HTML 11.5%