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/
https://github.com/woltapp/engineering-summer-intern-2023
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
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.
Distributed under the MIT License. See LICENSE.txt
for more information.
Aliki Kapasakalidi - @AlikiKap - aliki02.kapasakalidi@gmail.com
Project Link: https://github.com/AlikiKap/wolt-delivery-calculator.git