Skip to content

Quanmuito/wolt-intern-2024

Repository files navigation

Project: Shipping Calculator

Version: 1.0.0

image image image image image image

Description

Delivery Fee Calculator is an application used to calculate shipping fees based on number/value of items, distance and delivery time.

Testing

Development environment
  • 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 (or npm install) to install packages.
  • Run command yarn start (or npm start) to start the project.
  • Access at localhost:3000/wolt-intern-2024.
Staging environment (with Docker)
  • 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 or docker-compose up -d
  • Access at localhost/wolt-intern-2024/.
Production environment

Debugging

  • If you use VSCode, start debugging mode by press F5 or Ctrl+Shift+D and Start Debugging.

Test coverage

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

Source