This project is an online shop that allows users to browse a catalogue of products and view detailed information about each product. In addition, users can add products to their shopping cart.
The shop has been developed using React and makes use of Axios to make API calls. An Axios interceptor called axios-cache-interceptor
has been implemented which allows queries to be cached in the browser's local storage. This improves the performance of the application and reduces the load on the server.
1- Clone repository
2- Install Dependencies npm i
Run the command npm run start
. This will start the development server and open the app in your default browser.
Run the command npm run test
. This will execute all the tests in the project and display the results in the console.
Run the command npm run lint
. This will check the code for style issues and display any errors or warnings in the console.
Run the command npm run build
. This will create a production-ready version of the app in the build folder.