1/ Required for project
- Php >= 7.1.3
- Composer
- Node js and Npm
- git
1/ Clone the project with git
git clone https://github.com/WildCodeSchool/lyon-0918-ventealaferme.git
2/ Configure .env
- Copy
.env
file and rename it.env.local
- Open
.env.local
file and configureDATABASE_URL
line
1/ Installing the php project dependencies
composer install
2/ Drop old database if exists
bin/console doctrine:database:drop --force
3/ Create database
bin/console doctrine:database:create
4/ Update database schema
bin/console doctrine:schema:update --force
5/ Load project fixtures
bin/console doctrine:fixtures:load
/!\Assets is required for design on project/!\
1/ Install symfony webpack encore
composer require encore
2/ Install node js dependencies
yarn
or
npm install
3/ Compile a webpack assets
yarn encore run dev
1/ If yarn run dev
returns errors
-
Solution 1 :
composer require encore
andyarn
-
Solution 2 : delete the
node_modules
folder and typeyarn
and retry the command
"Vente à la ferme" is a Wild Code School project.
1/ List of all project contributors
2/ List of all dependencies used in project
- PHP framework used : Symfony 4
- Assets gesture : Webpack with symfony encore
- Template used : Bears
- Map gesture : Google maps