You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Erase 57b2490be7 Poulet 10 months ago
.idea Poulet 10 months ago
assets Poulet 10 months ago
bin Poulet 10 months ago
config Poulet 10 months ago
public Poulet 10 months ago
src Poulet 10 months ago
templates Poulet 10 months ago
translations Poulet 10 months ago
.env Poulet 10 months ago
.gitignore Poulet 10 months ago
README.md Poulet 10 months ago
composer.json Poulet 10 months ago
composer.lock Poulet 10 months ago
conference.js Poulet 10 months ago
package-lock.json Poulet 10 months ago
package.json Poulet 10 months ago
play.js Poulet 10 months ago
postcss.config.js Poulet 10 months ago
symfony.lock Poulet 10 months ago
webpack.config.js Poulet 10 months ago
yarn.lock Poulet 10 months ago

README.md

Webpack Encore: SymfonyCon!

Hi there!

Setup

To get it working, follow these steps:

Download Composer dependencies

Make sure you have Composer installed and then run:

composer install

Setup .env.local

If the DATABASE_DSN in .env doesn’t work for you, create a new .env.local file and override it there.

Setup the Database

Again, make sure .env.local is setup for your computer if needed. Then, create the database and the schema!

php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate
php bin/console doctrine:fixtures:load

If you get an error that the database exists, that should be ok. But if you have problems, completely drop the database (doctrine:database:drop --force) and try again.

Start the Symfony web server

You can use Nginx or Apache, but Symfony’s local web server works even better.

To install the Symfony local web server, follow “Downloading the Symfony client” instructions found here: https://symfony.com/download - you only need to do this once on your system.

Then, to start the web server, open a terminal, move into the project, and run:

symfony serve

(If this is your first time using this command, you may see an error that you need to run symfony server:ca:install first).

Now check out the site at http://localhost:8000

For convenience

If you are using PhpStorm you may install and enable the Symfony Plugin via the preferences which provides more auto-completion for Symfony projects.

Have fun!