No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
config
file
public
src
tests
.env.dist
.gitignore
README.md
composer.json
composer.lock
docker-compose.yml
phpunit.xml.dist
symfony.lock

README.md

Workshop: Symfony4 and TDD

1.Clone repo:

git clone https://github.com/wesolowski/symfony-tdd-workshop.git

2.Start docker

docker-compose up -d

3.Connect to docker-container

# SSH - Password: docker
ssh docker@127.0.0.1 -p 2222

# Docker way
docker exec -it symfony_tdd bash

4.Install/config symfony

cd /var/www/
composer install --dev
php bin/console doctrine:database:create
php bin/console  doctrine:migrations:migrate
php bin/phpunit # all unit tests should be green :)

5.Web-browser

Add host

127.0.0.1 public.local.docker

Now you can see symfony:

Start: http://public.local.docker:8080/
Rest: http://public.local.docker:8080/data

6.DB

Db is sqllite. Path to file: /var/data.db