Delivery Fee Calculator is an application used to calculate shipping fees based on number/value of items, distance and delivery time.
- This setup helps you test the project as a developer.
- Install Node.js. Recommended version: 20.9.0.
- Clone this repository or unzip the project folder to your local machine.
- Open a terminal from the project directory.
- Run command
yarn install
(ornpm install
) to install packages. - Run command
yarn start
(ornpm start
) to start the project. - Access at localhost:3000/wolt-intern-2024.
- This setup mimics the production stage on local.
- Install Docker Desktop.
- Clone this repository or unzip the project folder to your local machine.
- Open a terminal from the project directory.
- Run
docker-compose up
ordocker-compose up -d
- Access at localhost/wolt-intern-2024/.
- Test built and live version here > Delivery Fee Calculator
- If you use VSCode, start debugging mode by press
F5
orCtrl+Shift+D
andStart Debugging
.
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
---|---|---|---|---|---|
All files | 100 | 100 | 100 | 100 | |
src | 100 | 100 | 100 | 100 | |
App.tsx | 100 | 100 | 100 | 100 | |
calculator.ts | 100 | 100 | 100 | 100 | |
react-app-env.d.ts | 0 | 0 | 0 | 0 | |
types.ts | 0 | 0 | 0 | 0 | |
src/components | 0 | 0 | 0 | 0 | |
index.ts | 0 | 0 | 0 | 0 | |
src/components/Inputs | 100 | 100 | 100 | 100 | |
index.tsx | 100 | 100 | 100 | 100 | |
src/hooks | 100 | 100 | 100 | 100 | |
useCalculatorForm.ts | 100 | 100 | 100 | 100 |
Test Suites: 3 total Tests: 123 total