Monorepository Experiment for Symfony projects - currently 2: open training and open-real-estate
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
packages
projects
.dockerignore
.editorconfig
.gitattributes
.gitignore
.gitlab-ci.yml
.travis.yml
MONOREPO.md
README.md
composer.json
composer.lock
ecs.yml
ide-twig.json
monorepo-builder.yml
phpstan.neon
phpunit.xml
rector.yml

README.md

Important Commands

1. Install

You do this only once:

# create git repository
git init

# add link to repository - first https, than ssh to modify the code
git remote add origin git@github.com:TomasVotruba/open-project.git

# download project here
git pull

# turn code  
git checkout master

# install other packages - Symfony, Doctrine...
composer install

Setup path to your project in bin/console.

Install assets

php bin/console assets:install --env=prod --no-debug

Clear cache after any config change - e.g. security

php bin/console cache:clear

Install adminer

composer adminer-install

2. Database setup

  1. Xampp - create databse ...

3. Run

Run web in browser:

php bin/console server:run

Open in browser to see website:

localhost:8000


Update database after changing entities:

php projects/open-real-estate/bin/console doctrine:schema:update --dump-sql --force

Run via docker

This is example for running open-training project locally:

  1. Run projects/open-training/bin/run-from-docker.sh
  2. Enjoy :-) project is available on localhost:8000

In some rare scenarios you might want to tweak projects/open-training/docker-compose.yml file for your needs.