Skip to content
/ cart Public

Simple Symfony 4 shopping cart application. App boilerplate

Notifications You must be signed in to change notification settings

krybc/cart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bfabe20 · Jun 9, 2021

History

30 Commits
Oct 11, 2019
Sep 4, 2018
Feb 5, 2019
Jun 9, 2021
Sep 4, 2018
Feb 2, 2019
Feb 6, 2019
Sep 4, 2018
Feb 6, 2019
Sep 12, 2018
Feb 6, 2019
Feb 11, 2019
Feb 6, 2019
Jun 9, 2021
Feb 11, 2019
Jun 9, 2021
Jun 9, 2021
Jun 9, 2021
Jun 9, 2021
Jun 9, 2021
Jun 9, 2021
Jun 9, 2021
Jun 9, 2021

Repository files navigation

Simple Symfony 4 cart

pipeline status coverage report

Requirements

  • composer
  • php >= 7.1
  • webpack
  • mysql >= 5.6
  • nodeJS (8.11.1 and above)

Installation

Docker

  • 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

Webserver

  • 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

Running

Docker

  • run docker-compose up
  • enjoy that shit in web browser on http://localhost:8000 URL