Due Date: 21:00 PM Tonight

Test Case

Pages

Planet List Page
  • list all planets with infinite scroll and virtualize list.
Planet Detail Page
  • list of the detailed planets.
  • createdDate data from the endpoint is a must for this endpoint
  • button for add to wishlist.
Wishlist Page
  • list all planets already wishlist with pagination.

Endpoint

Tech Stack

  • Must use Typescript (usage of “any” as a type is not allowed)
  • ReactJS or ReactNative

Requirement

  • Please use React Hook
  • Git (commit every feature when you done)
  • Feel free to use REST API or GraphQL
  • Please use CSS in JS (eg: styled-components)
  • Please use linter
  • Please avoid using big size dependency (moment / lodash)
  • Please use create-react-app or create-react-native-app for initializing a project
  • Create a test (functional or e2e) test is a big plus
  • Feel free to use your imagination for the user interface and optional data to show it.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!