2023-02-07 18:00:54 +00:00
|
|
|
# CC34
|
|
|
|
## Membres
|
|
|
|
- Ayoub ZIANI
|
|
|
|
- François ZHU
|
|
|
|
- Zakarya BEN JABALLAH
|
|
|
|
- Aymeric SERRA
|
|
|
|
|
|
|
|
## Questions
|
|
|
|
### Question 1
|
|
|
|
#### Création du projet
|
|
|
|
```bash
|
|
|
|
symfony new cc34 --webapp # Création du projet
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Création d'un controlleur
|
|
|
|
```bash
|
|
|
|
symfony console make:controller pages
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Bootsrap et Wepback Encore
|
|
|
|
```bash
|
|
|
|
symfony composer require symfony/webpack-encore-bundle
|
|
|
|
npm install
|
|
|
|
npm install bootstrap
|
|
|
|
npm install bootstrap-icons
|
|
|
|
# Modifier asset/app.js et config/package/twig.yaml
|
|
|
|
npm run dev
|
|
|
|
```
|
|
|
|
|
|
|
|
### Question 2
|
|
|
|
```bash
|
|
|
|
symfony console doctrine:database:create # Création de la base de donnée
|
|
|
|
symfony console make:entity Atelier # Création d'une entité Atelier
|
|
|
|
symfony console make:migration # Création d'une migration
|
|
|
|
symfony console doctrine:migrations:migrate # On lance la migration
|
|
|
|
```
|
|
|
|
|
|
|
|
### Question 3
|
|
|
|
```bash
|
|
|
|
symfony composer require fakerphp/faker
|
|
|
|
symfony composer require orm-fixtures --dev
|
|
|
|
symfony console doctrine:fixtures:load
|
|
|
|
```
|
|
|
|
|
|
|
|
### Question 4
|
|
|
|
```bash
|
|
|
|
symfony console make:crud Atelier
|
|
|
|
```
|
|
|
|
|
|
|
|
### Question 5
|
|
|
|
```bash
|
|
|
|
npm run dev
|
|
|
|
```
|
|
|
|
|
|
|
|
### Question 6
|
|
|
|
```bash
|
|
|
|
symfony composer require cebe/markdown "~1.2.0"
|
2023-02-08 15:55:06 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Question 7
|
|
|
|
```bash
|
|
|
|
symfony console make:user
|
|
|
|
symfony console make:entity User
|
|
|
|
symfony console m:mig
|
|
|
|
symfony console d:m:m
|
|
|
|
symfony console make:auth
|
|
|
|
symfony console make:registration-form
|
2023-02-08 16:39:19 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Question 8
|
|
|
|
```bash
|
|
|
|
symfony console make:entity
|
|
|
|
symfony console make:migration
|
2023-02-08 16:49:38 +00:00
|
|
|
symfony console d:f:l
|
2023-02-08 16:57:12 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Question 9
|
|
|
|
Pas de commandes, juste du code dans AtelierController
|