stretinsky / secret_santa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

  1. Create a .env file from .env.dist

    $ cp .env.dist .env && nano .env
    $ cd app && cp .env .env.local
  2. Build and run the stack in detached mode (stop any system's ngixn/apache2 service first)

    $ docker-compose build
    $ docker-compose up -d
  3. Prepare the Symfony application

    1. Update Symfony env variables (.env)

      #...
      DATABASE_URL=mysql://db_user:db_password@mysql:3306/db_name
      #...
      #...
      MAILER_DSN=smtp://username:app_pass@smtp.gmail.com:587
      #...
      
    2. Composer install & update the schema from the container

      $ docker-compose exec php-fpm bash
      $ composer install
      $ symfony doctrine:schema:update --force

🎉 Now we can stop our stack with docker-compose down and start it again with docker-compose up -d

Usage

localhost:8081/main - Main page. Enter the name and email of the participants (minimum 4), the system will distribute all and send emails.

About


Languages

Language:PHP 65.1%Language:JavaScript 22.2%Language:Twig 9.1%Language:Dockerfile 3.6%