No description
Find a file
2022-05-27 09:30:27 +02:00
bin new docker image 2021-12-21 19:35:13 +01:00
config add missing data to jwt token 2022-05-27 09:30:27 +02:00
docker Bootstrap dev environment 2018-09-02 17:39:44 +02:00
migrations introduce migration to api platform 2020-12-07 12:29:34 +01:00
public introduce migration to api platform 2020-12-07 12:29:34 +01:00
spec introduce migration to api platform 2020-12-07 12:29:34 +01:00
src add missing data to jwt token 2022-05-27 09:30:27 +02:00
templates introduce migration to api platform 2020-12-07 12:29:34 +01:00
tests Introduce CI 2022-01-16 16:51:48 +01:00
.dockerignore Bootstrap dev environment 2018-09-02 17:39:44 +02:00
.env introduce migration to api platform 2020-12-07 12:29:34 +01:00
.env.test add codeception 2021-11-02 20:30:58 +01:00
.gitignore add codeception 2021-11-02 20:30:58 +01:00
.gitlab-ci.yml Introduce CI 2022-01-16 16:51:48 +01:00
codeception.yml add codeception 2021-11-02 20:30:58 +01:00
composer.json add codeception 2021-11-02 20:30:58 +01:00
composer.lock add codeception 2021-11-02 20:30:58 +01:00
debug.sql introduce migration to api platform 2020-12-07 12:29:34 +01:00
docker-compose.yml add codeception tests 2021-11-02 20:54:46 +01:00
Dockerfile new docker image 2021-12-21 19:35:13 +01:00
Insomnia_workspace.json introduce migration to api platform 2020-12-07 12:29:34 +01:00
phpunit.xml.dist add codeception 2021-11-02 20:30:58 +01:00
README.md introduce migration to api platform 2020-12-07 12:29:34 +01:00
symfony.lock add codeception 2021-11-02 20:30:58 +01:00

MySecretSanta

Create jwt private/public keys

$ mkdir -p config/jwt
$ openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096
$ openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout

Env vars

### App config
APP_IS_REGISTER_ENABLED=true
APP_VALIDATE_USER_EMAIL=false
APP_ASSIGN_SANTA_MAX_SHUFFLE_TRY=10
APP_ASSIGN_SANTA_PREVIOUS_EVENTS_TO_CHECK=5

APP_MAILER_FROM_CONTACT_EMAIL=perenoel@plopoyop.me
APP_MAILER_FROM_CONTACT_NAME="Pere Noel"

Install app

docker-compose exec --user 1000 engine bash
composer install
./bin/console ca:cl
./bin/console doctrine:schema:create