diff --git a/README.md b/README.md index 41b9975..3fff3d6 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## Requirements -* ubuntu php-cli (sudo nala install curl unzip php-curl php-xml php-mysql) +* ubuntu (sudo nala install curl unzip php-curl php-xml php-cli php-mysql) * [Install Composer](https://www.nickyeoman.com/page/install-composer-on-ubuntu) * [Symfony cli](https://symfony.com/download) @@ -21,8 +21,10 @@ cd YOUR_PROJECT_NAME The next steps to take would be: -1. Verify the ```.env``` and ```docker-compose.md``` file +1. Verify the ```.env``` and ```docker-compose.yml``` file + 1. Set mailhog: MAILER_DSN=smtp://symfony-mailhog:1025 1. start docker ```sudo docker-compose up -d``` +1. test at http://localhost:8000 1. [Create your controllers](https://git.nickyeoman.com/nick/symfony/src/branch/main/docs/Controller.md) 1. Run sass ```sass sass/project.sass public/css/main.css``` 1. [Create your security](https://git.nickyeoman.com/nick/symfony/src/branch/main/docs/Security.md) diff --git a/bin/nysymfony b/bin/nysymfony index 429782b..0753f7f 100755 --- a/bin/nysymfony +++ b/bin/nysymfony @@ -71,11 +71,11 @@ echo "Your twig.yaml config file has been replaced, remove the bak if you are ha echo "Creating SASS directory for css" composer require nickyeoman/sassLibrary -touch sass/$1.sass +touch sass/project.sass mkdir -p public/css touch public/css/main.css echo '.sass-cache' >> .gitignore -echo '@import ../vendor/nickyeoman/sasslibrary/master.sass' > sass/$1.sass +echo '@import ../vendor/nickyeoman/sasslibrary/master.sass' > sass/project.sass echo "SASS installed you still need to run sass sass/$1.sass public/css/main.css" ################################################################################ @@ -104,6 +104,7 @@ composer req debug logger composer require symfony/security-bundle composer require form validator composer require symfonycasts/verify-email-bundle +composer require symfonycasts/reset-password-bundle ################################################################################ # Database diff --git a/docs/Database.md b/docs/Database.md index 159538c..22e4b32 100644 --- a/docs/Database.md +++ b/docs/Database.md @@ -12,7 +12,7 @@ And then follow the instructions. This will create a entity class in src/Entity **Note: ** You can run make:entity again with the same Entity name to add more fields. -You will have to ehn drun make:migration and then doctrine:migrations:migrate +You will have to run make:migration and then doctrine:migrations:migrate The system is smart enough not to duplicate work. diff --git a/docs/Security.md b/docs/Security.md index 90c914b..83a0e9b 100644 --- a/docs/Security.md +++ b/docs/Security.md @@ -5,21 +5,18 @@ Permissions are linked to a user object. ```bash -php bin/console make:user +symfony console make:user +symfony console make:auth # (1 for login form) +symfony console make:registration-form +symfony console make:reset-password ``` -Now you will want to sync the databse +Now you will want to sync the database (using docker) ```bash -php bin/console make:migration -php bin/console doctrine:migrations:migrate -``` - -## Registration Form - -You can use maker to do this (symfonycasts/verify-email-bundle must be installed, which is done through the install script) -```bash -php bin/console make:registration-form +sudo docker-compose run symfony php bin/console make:migration +sudo docker-compose run symfony php bin/console doctrine:migrations:migrate ``` +Note: 'symfony' is the name of your symfony app in docker-compose (such as app) ## Login Form