Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.04 KB

File metadata and controls

36 lines (26 loc) · 1.04 KB

How to run the project?

This example is explained in the post Symfony/BDD example 04: login/logout.

##1. Preliminary step

First, you need to create and install Vagrant box named symfony-v0.4.4. You will find the instruction in the post titled Generating symfony-v0.4.4 box.

##2. Running the example

$ git clone https://github.com/by-examples/symfony-bdd-example-04-login-logout.git
$ cd symfony-bdd-example-04-login-logout
$ vagrant up
$ vagrant ssh
$ composer install -o
$ php app/console doctrine:schema:update --force
$ php app/console fos:user:create admin admin@example.net loremipsum --super-admin

##3. Running the tests

$ vagrant ssh
$ php app/console cache:clear --env=prod
$ bin/behat

##4. Visit the application with the browser

Now, you can run the web browser and visit:

http://localhost:8880/
http://localhost:8880/app_dev.php/