View Code? Open in Web Editor
NEW
Simple Symfony 4 shopping cart application. App boilerplate
JavaScript 0.77%
PHP 82.32%
Dockerfile 0.79%
Shell 1.78%
SCSS 0.26%
Twig 14.08%
cart's Introduction
![coverage report](https://camo.githubusercontent.com/e9b53a13307f5c715da781f5de9818a6ccdfe8cecf9e77ef805c544cffb115d6/68747470733a2f2f6769746c61622e636f6d2f6b727962632f636172742f6261646765732f6d61737465722f636f7665726167652e737667)
![](./docs/preview.png)
- composer
- php >= 7.1
- webpack
- mysql >= 5.6
- nodeJS (8.11.1 and above)
- run
git clone https://github.com/kamil-rybczynski/cart.git
command
- run
docker-compose up --build
- log in to app container bash
docker exec -it cart_app /bin/bash
- run
cp .env .env.local
and type your environment variables, eg. valid mysql port for the Docker
- run
composer install
- run
php bin/console doctrine:migrations:migrate
to add database tables
- run
php bin/console doctrine:fixtures:load
to load default products, payments, shipments and discount codes data
- tap
exit
command and exit from container terminal
- log in to node container bash
docker exec -it cart_node /bin/bash
- run
npm install
- run
npm run dev
- enjoy that shit in web browser on
http://localhost:8000
URL
- run
git clone https://github.com/kamil-rybczynski/cart.git
command
- run
composer install
command
- run
npm install
command to install frontend dependencies
- add database on your mysql server
- copy
.env
file to .env.local
and type your local environment variables, eg. mysql connection
- run
php bin/console doctrine:migrations:migrate
to add database tables
- run
php bin/console doctrine:fixtures:load
to load default products, payments, shipments and discount codes data
- map host to
public
folder
- run
docker-compose up
- enjoy that shit in web browser on
http://localhost:8000
URL