In order to setup this little project as fast as possible, I've been using vite and its react-ts
template
npm create vite@latest hacker-news-test -- --template react-ts
Nothing special!
npm install
npm run dev
Name | Description | Doc |
---|---|---|
dayjs | Lightweight library to ease Js Date manipulation | https://day.js.org/ |
axios | Ajax library to easy Ajax call | https://axios-http.com/docs/intro |
This project aimed to use the hackernew API to gather the most populars posts.
- Use ReactJS
- Use Typescript
- Use Hackernew API
- Show 20 last posts at load
- Show next 20 posts on demand
- Refresh the list each 20 sec
- Refresh the list on demand