This starter kit is here to easily install The French Copywriter's repository.
- Check php is installed
- Check symfony is installed
- Check composer is installed
- Check yarn & node are installed
- Clone this project with git clone
git clone https://github.com/WildCodeSchool/tours-0919-php-sylvainlecerten.git
- Move to the repository with
cd tours-0919-php-sylvainlecerten/
- Run
composer install
- Run
yarn install
- Copy
.env
file and modify it in.env.local
- Replace user, password and db_name in the line
DATABASE_URL=mysql://db_user:[email protected]:3306/db_name
in.env.local
- Run
php bin/console server:run
to launch your local php web server - Run
yarn run dev --watch
to launch your local server for assets - Run
mysql.server start
to launch mysql database - Go on
https://localhost:8000/
to visit the website
If you develop on Windows, you should edit you git configuration to change your end of line rules with this command :
git config --global core.autocrlf true
In order to load fixtures in the database so they could be visible on your website, please run :
- Run
php bin/console make:migration
to create the migration file - Run
php bin/console make:migrations:migrate
to create the database's tables - Run
php bin/console doctrine:fixtures:load
to load fixtures on the database
Add additional notes about how to deploy this on a live system
- Run
./bin/phpcs
to launch PHP code sniffer - Run
./bin/phpstan analyse src --level max
to launch PHPStan - Run
./bin/phpmd src text phpmd.xml
to launch PHP Mess Detector - Run
./bin/eslint assets/js
to launch ESLint JS linter - Run
./bin/sass-lint -c sass-linter.yml
to launch Sass-lint SASS/CSS linter