SmartERD is a Symfony project designed to create Entity Relationship Diagrams. These are used to have a model of the database while ignoring the RDBMS used.
Disclaimer: SmartERD is still under active development.
docker compose build --pull --no-cache
to build fresh imagesdocker compose up -d
to run the servicesdocker compose exec php composer install -n
to install Composer dependenciesdocker compose exec php bin/console app:setup
to set up the app (do not use this command in production)Execute these commands to run tests:
docker compose exec php make tests
to set up the app in test environmentWhen working on Windows, WSL2 is necessary for SmartERD to be fast enough (go from ~4 seconds for an api call to 40ms). Sometimes there are some problems:
The command 'docker' could not be found in this WSL 2 distro.
We recommand to activate the WSL integration in Docker Desktop settings.
See https://docs.docker.com/desktop/windows/wsl/ for details.
Make sure your distro is set as default and use the version 2 of WSL. You can
see this using the
wsl --list --verbose
command.
If the distro isn't default one, run this command:
wsl --set-default <distro-name>
(for example Ubuntu-20.04)
If the distro isn't on version 2 of WSL:
wsl --set-version <distro-name> 2
Then be sure that Docker is configured this way:
Then finally restart Docker from the taskbar using a right click.