karadumanb / parcellab-challenge

Parcellab Challenge with next.js using schadn/ui, typescript and tailwind

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started

Clone the repository and follow:

  yarn install
  yarn dev

You will see the login page as shown below. If you enter the correct values for orderNo and zipCode, then you will be able to see the order detail page.

Screenshot 2023-10-25 at 10 10 04

One good example: orderNo = 0000RTAB3 zip_code = 81371

http://localhost:3000/order?orderNo=0000RTAB3&zip_code=81371

Screenshot 2023-10-25 at 10 02 36

The app is mobile optimized!

Screenshot 2023-10-24 at 23 17 02 Screenshot 2023-10-24 at 23 16 57 Screenshot 2023-10-24 at 23 16 00

Testing

You can check and challenge the tests running the following command.

  yarn test
Screenshot 2023-10-25 at 11 55 35

Dependencies

Post requests done by axios. If you need to check how this works with real endpoint that is shared in the challenge. You just need to update the baseUrl in the file lib/axios.ts

Mock apis are created by next using node

UI element created by shadcn https://ui.shadcn.com/ This is the installation of the shadcn -> https://ui.shadcn.com/docs/installation/next

Tailwind is heavily used for any kind of adjustment in the ui. Tests are completed by jest and react testing library.

Thanks for the challenge!

Let me know if you need anything! Enjoy reviewing it!

image

About

Parcellab Challenge with next.js using schadn/ui, typescript and tailwind


Languages

Language:TypeScript 90.5%Language:JavaScript 6.0%Language:CSS 3.6%