- Interact with twitter api
- Get main design done
- Search twitter user
- Displays tweets
- Add refetching every 1 minute
- Tests
-
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.
- 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.
- Used vercel, simply very simple
- Link to gentle website gentle
- Clone the repository
- Install the dependencies with
yarn
- Get the tokens and keys from twitter or ask me for the
.env
- Run
yarn dev