Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krybc/cart
Simple Symfony 4 shopping cart application. App boilerplate
https://github.com/krybc/cart
backend boilerplate cart doctrine-orm mvc mysql php71 symfony symfony-flex symfony4 webpack-encore
Last synced: 3 months ago
JSON representation
Simple Symfony 4 shopping cart application. App boilerplate
- Host: GitHub
- URL: https://github.com/krybc/cart
- Owner: krybc
- Created: 2018-02-09T13:05:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T03:58:56.000Z (about 2 years ago)
- Last Synced: 2024-09-29T19:41:35.082Z (4 months ago)
- Topics: backend, boilerplate, cart, doctrine-orm, mvc, mysql, php71, symfony, symfony-flex, symfony4, webpack-encore
- Language: PHP
- Homepage:
- Size: 1.34 MB
- Stars: 21
- Watchers: 3
- Forks: 15
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Symfony 4 cart
[![pipeline status](https://gitlab.com/krybc/cart/badges/master/pipeline.svg)](https://gitlab.com/krybc/cart/commits/master)
[![coverage report](https://gitlab.com/krybc/cart/badges/master/coverage.svg)](https://gitlab.com/krybc/cart/commits/master)![](./docs/preview.png)
## 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