Projet 7 : API Bilemo
(Attention à changer le port localhost si besoin !)
- PHP 8
- Mysql 8.0
- Symfony 5.3
- Symfony CLI
- Docker
- Docker-compose
Vous pouvez vérifier les pré-requis de symfony avec la commande suivante (de la CLI de Symfony)
symfony check:requirements
####Avec Docker
Créez un dossier mysql à la racine du projet. Puis entrez les commande suivante :
docker-compose up -d
L'environnement de developpement est lancé !!
cd app
symfony serve
Ouvrez un terminal a la racine du projet et exécutez les commandes suivantes :
cd app
composer install
Mettez à jour le fichier .env et lancé la ligne de commande suivante:
composer prepare
Dans le terminal exécutez la commande suivante :
php bin/console lexik:jwt:generate-keypair
Rendez vous sur la page de documentation et exécutez la méthode login avec les paramètres suivants:
Administrateur :
- name : bilemo
- password :admin
Client
- name : company1
- password : password