This is a revamped version of the Delivery fee calculator built with Next.js, TypeScript, TailwindCSS and tested with Vitest and Playwright.
This project allows you to calculate the price of delivery from a venue to your choice of destination. The project can be reached through this link.
First, clone this project:
git clone https://github.com/wangc9/delivery-fee-calculator-2.gitThis project is built with Node v22, make sure that you are using an appropriate Node version. Then, install all dependencies:
yarn installFinally, start the development server:
yarn run devOpen http://localhost:3000 with your browser to see the result.
This project comes with unit tests and e2e tests. To run unit tests, use the following command:
yarn run testTo run e2e tests, there are two options:
a) Run tests and see results in command line:
yarn run test:e2eb) Run interactive tests:
yarn run test:e2e-ui