/symfony-workflow-lab

This is a testing project with the purpose of showcase some practical use cases for using Symfony Workflows Bundle into our projects.

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

Symfony Workflows Lab

Description

This is a testing project with the purpose of showcase some practical use cases for using Symfony Workflow Bundle into our projects.

Local Environment

  • nginx, as reverse proxy server.
  • php, the PHP-FPM container with the 8.2 version of PHP.
  • db which is the MySQL database container with a MySQL 8.0 image.

Installation

  1. 😀 Clone this repo.

  2. Create the file ./.docker/.env.nginx.local using ./.docker/.env.nginx as template. The value of the variable NGINX_BACKEND_DOMAIN is the server_name used in NGINX.

  3. Use the following value for the DATABASE_URL environment variable:

DATABASE_URL=mysql://app_user:helloworld@db:3306/app_db?serverVersion=8.0.33&charset=utf8mb4
  1. Go inside folder ./docker and run docker compose up -d to start containers.

  2. Inside the php container, run composer install to install dependencies from /var/www/symfony folder.

  3. Then, run Doctrine Migrations to populate the database: php bin/console doctrine:migrations:migrate -n