This is a simple application that allows users to add and remove pastries to a basket and calculate the total amount.
- Add baklava to the basket by selecting from the available options
- Remove baklava from the basket by clicking on the remove button
- Increase or decrease the amount of baklava in the basket using the increase and decrease buttons
- See the total amount calculated based on the number and price of baklava in the basket
This application was built using Redux Toolkit, which is a package that provides a set of tools to simplify the process of managing state in React applications.
To run the application, follow these steps:
- Clone this repository to your local machine
- Open the terminal and navigate to the root folder of the project
- Run
npm install
to install the required dependencies - Run
npm start
to start the development server - Open your browser and navigate to
http://localhost:3000
The application's code is organized into the following folders:
- `app` - Contains the main application component and the Redux store.
- `features` - Contains the `basket` slice, which defines the state and actions related to the basket.
- `components` - Contains the reusable components used in the application.
If you would like to contribute to this project, please fork the repository and submit a pull request.