Skip to content

mazraara/symfony-shopping-cart

Repository files navigation

Installation Guide

  1. Download the source code from git lab

  2. Go to the project dir and run below docker commands to get the environment (assuming docker is installed)

docker-compose build

docker-compose up -d

now phpMyAdmin will be available under http://localhost:8088/

  1. Run below command setup the project dependencies

composer install

  1. Update the parameters.yml in app/config with below values

database_host: 127.0.0.1 database_port: 3306 database_name: BookStore database_user: book database_password: book@123 mailer_transport: smtp mailer_host: smtp.mailtrap.io mailer_user: null mailer_password: null secret: 8PWLg7c2U

  1. Run below command to create the tables

php bin/console doctrine:schema:update –-force

  1. Run below command to load the migration scripts

php bin/console doctrine:migrations:migrate

  1. Run below command to seed the database

php bin/console doctrine:fixtures:load

  1. Finally to load the application run the below command

php bin/console server:run

Now the application should be available under http://localhost:8000/ Login username: admin Login password: p@ssword

  1. To run the Test cases (Unit & Functional) run the below commands

Functional > ./vendor/bin/simple-phpunit tests/AppBundle/Controller/

Unit > ./vendor/bin/simple-phpunit tests/AppBundle/Utils

  1. if you get any permission issue running on docker, try to clear the cache php bin/console cache:clear --env=prod

About

A code challenge using Symfony 3.4

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published