A React + TypeScript + Vite application that calculates delivery fees based on multiple factors such as cart value, distance, number of items, and rush hour rules.
This project was built to demonstrate frontend development with modern tooling and strong TypeScript support.
Features
Cart value check – free delivery above a threshold.
Distance calculation – fee increases with delivery distance.
Item surcharge – additional fee for large orders.
Rush hour multiplier – dynamic fee adjustment during peak hours.
Responsive UI – works well on desktop and mobile.
Tech Stack
React 18 with TypeScript
Vite for fast build tooling
Jest (or Vitest) for testing business logic
Nginx used for production deployment on AWS EC2
Getting Started Prerequisites
Node.js (v18 or newer recommended)
npm or yarn
Installation