Skip to content

A test task for Wolt which is a form that provides an easy way for a user to calculate the price of the delivery taking into account distance, time, amount of items in the cart and more.

License

Notifications You must be signed in to change notification settings

AlikiKap/wolt-delivery-calculator

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Wolt Delivery Calculator


Explore the docs »

View Demo · Report Bug · Request Feature

calculator.png calculator-edited.png

Table of contents

  1. About The Project
  2. Installation
  3. Usage
  4. License
  5. Contact

About The Project

This Project was a test task from Wolt. The task was to implement a service where it would be possible for a user to calculate the price of the delivery according to the following rules:

  • If the cart value is less than 10€, a small order surcharge is added to the delivery price. The surcharge is the difference between the cart value and 10€. For example if the cart value is 8.90€, the surcharge will be 1.10€.
  • A delivery fee for the first 1000 meters (=1km) is 2€. If the delivery distance is longer than that, 1€ is added for every additional 500 meters that the courier needs to travel before reaching the destination. Even if the distance would be shorter than 500 meters, the minimum fee is always 1€.
  • If the number of items is five or more, an additional 50 cent surcharge is added for each item above and including the fifth item. An extra "bulk" fee applies for more than 12 items of 1,20€
  • The delivery fee can never be more than 15€, including possible surcharges.
  • The delivery is free (0€) when the cart value is equal or more than 100€.
  • During the Friday rush (3 - 7 PM UTC), the delivery fee (the total fee including possible surcharges) will be multiplied by 1.2x. However, the fee still cannot be more than the max (15€). Demo: https://alikikap.github.io/wolt-delivery-calculator/

Task

https://github.com/woltapp/engineering-summer-intern-2023

Built With

  • React
  • Static Badge

(back to top)

Installation

Follow these steps to get the project up and running on your local machine:

Clone the repository:

  git clone https://github.com/AlikiKap/wolt-delivery-calculator.git

Navigate to the project directory:

  cd wolt-delivery-calculator

Install the dependencies:

  npm install

Usage

Once you have installed the dependencies, you can start the development server:

  npm run start

This will start the application in development mode, and you can access it in your web browser at http://localhost:3000.

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Aliki Kapasakalidi - @AlikiKap - [email protected]

Project Link: https://github.com/AlikiKap/wolt-delivery-calculator.git

(back to top)

About

A test task for Wolt which is a form that provides an easy way for a user to calculate the price of the delivery taking into account distance, time, amount of items in the cart and more.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published