Proyecto preconfigurado para agilizar las primeras etapas de desarrollo de una aplicación.
// directorio donde se quiere instalar
$ git clone https://github.com/emortri/symfony4template
$ cd symfony4template
$ composer install
$ yarn install
$ yarn run encore dev
// .env
23 DATABASE_URL=mysql://USUARIO:CONTRASEÑA@127.0.0.1:3306/NOMBRE_BD
$ php bin/console doctrine:database:create
$ php bin/console doctrine:migrations:migrate
Por defecto se creará el siguiente usuario:
Usuario: emortri@admin.com
Contraseña: emortri
y los siguientes roles:
ROLE_ADMIN
ROLE_USER
- Generar una nueva contraseña de cifrado.
$ mkdir -p config/jwt # For Symfony3+, no need of the -p option
$ openssl genrsa -out config/jwt/private.pem -aes256 4096
$ openssl rsa -pubout -in config/jwt/private.pem -out config/jwt/public.pem
// .env
30 JWT_PASSPHRASE= CONTRASEÑA_GENERADA
- symfony/website-skeleton
- JMSSerializerBundle
- LexikJWTAuthenticationBundle
- BazingaJsTranslationBundle
- FOSJsRoutingBundle
- NelmioCorsBundle
- TranslationsExtraBundle