Sample shopping cart application with API
Invoke in shell:
$ git clone [email protected]:mkurosz/shopping-cart.git
Copy .env.dist file to .env:
$ cp .env.dist .env
edit .env file.
In this file you'll find following variable:
DATABASE_URL=mysql://db_user:[email protected]:3306/db_name
Fill this line by your db connection data.
Install dependencies:
$ composer install
Create database structure:
$ php bin/console doctrine:schema:update --force
Load fixtures:
$ php bin/console doctrine:fixtures:load
Drop previous test db:
$ php bin/console doctrine:schema:drop --env=test --force
Create again test db:
$ php bin/console doctrine:schema:create --env=test
Create database structure:
$ php bin/console doctrine:schema:update --force
Load fixtures:
$ php bin/console doctrine:fixtures:load --env=test
Run tests:
$ php bin/phpunit