Use this as a template to get your own SF 6.1 project going. This project is configured so that you must login to access any page - but you could modify the permissions easily enough.
This project was created on MacOS, so the instructions are tested on MacOS.
You should use your own APP_SECRET in .env
- generate one here: http://nux.net/secret
If you don't have the symfony
console command, you can install it with:
brew install symfony-cli/tap/symfony-cli
The first time you use the Symfony Proxy you will need to configure it and do some tweaks to your local networking:
symfony server:ca:install
symfony proxy:start
symfony proxy:domain:attach mydevsite
- You will now need to set a proxy in your network stack - follow instructions from https://symfony.com/doc/current/setup/symfony_server.html#local-domain-names)
composer install
- Create an
.env.local
with appropriate db connection details and other properties as necessary yarn install
symfony serve -d
yarn dev-server
symfony console doctrine:database:create
symfony console doctrine:migrations:migrate
The migrations include a test login:
- username: test@example.com
- password: password
This password will only work if you use the original APP_SECRET.
If you changed the secret (which is advised) you can use the console command symfony console security:hash-password
to generate a new password has, then store that in the migration or
update it on your db.
I use the Brave browser. It always defaults to blocking the JS/CSS (maybe because it comes from a different domain). So, I have to disable the Brave shields before I can see all the styling. I don't have this problem when the site is deployed.