This is a simple Symfony application that shows us the products from the Fake Store API and allows us to add products to the shopping cart and view them on the shopping cart page.
- Symfony 6.2, including
- Twig 2.12
- Stimulus
- Bootstrap
As this application was built without using databases, we used the Stimulus controller to add products to local storage and pass them to our Symfony shopping cart controller.
To get started, clone this repository to your local machine and navigate to the project directory in your terminal. Then run the following commands to install the dependencies:
composer install
npm install
Then run the following commands to start the application
npm run watch
symfony serve -d
The fake online store will be served at http://localhost:8000.