Skip to content

ofrades/gentle

Repository files navigation

Coding Challenge

TODO

  • Interact with twitter api
  • Get main design done
  • Search twitter user
  • Displays tweets
  • Add refetching every 1 minute
  • Tests

Decisions

  • I decided to use Next.js because it is a very nice react framework, with a variety of templates to get things started fast. Also can be used to render the first content in the server.

  • For styling I choose styled-components, just because I like it, it is simple and I like to have my components clean. In a different situation, with more components and bigger complexity the library I probably have chosen was the material UI, especially now, with 5.0 coming and the styled API implemented natively.

  • React-query to help me cache, fetch and mutate. Also, to control the refecth time.

Problems I faced

  • The twitter api do not let you access it with ease, so I created my own api with Next.js at api/tweets and used Twit library for Node.js to interact with Twitter's api.

Deploy

  • Used vercel, simply very simple
  • Link to gentle website gentle

To run

  • Clone the repository
  • Install the dependencies with yarn
  • Get the tokens and keys from twitter or ask me for the .env
  • Run yarn dev

Releases

No releases published

Packages

No packages published