Docker est requis.
- Cloner le repository :
git clone https://github.com/izio38/web-services.git
- Se placer dans le projet :
cd web-services
- Lancer toutes les applications :
docker-compose up -d
- SoapGen :
https://localhost/soapgen
. - SoapClient :
http://localhost:8080/soapclient.php
. - Api platform :
https://localhost/api
.
Avant de commencer il faudra :
- Un serveur de base de données MySQL 5.7+ ou MariaDB.
- L'utilitaire de commande composer.
- Le Framework Symfony.
- PhP 7.4+
Il faudra ensuite faire les étapes suivantes :
- Cloner le repository :
git clone [email protected]:izio38/web-services.git
. - Se placer dans le projet :
cd web-services
. - Installer les bundles dépendants :
composer install
. - Changer LES URL SUIVANTES :
.env
: Changer la variableDATABASE_URL
et mettre l'endpoint de votre serveur de base de données./soapclient/soapclient.php
: remplacerhttp://nginx:80
par l'url de votre serveur Symfony./src/Controller/SoapController.php
: remplacerhttp://nginx:80
par l'url de votre serveur Symfony./src/Controller/SoapGenController.php
: remplacerhttp://nginx:80
par l'url de votre serveur Symfony.
- Lancer le serveur Symfony :
symfony serve &
. - Placer le dossier
/soap-client
sur un proxy web style Apache ou Nginx.
Vous pouvez maintenant accèder au dossier soap-client
que vous avez placez sur un proxy web. La plupart du temps vous y accèderez (sauf modification de votre part) via l'url : http://localhost/soap-client/soapclient.php
Une fois que la base de données est configurée, il est possible de lancer les fixtures à l'aide de la commande : php bin/console doctrine:fixtures:load
.
ATTENTION: Si vous n'utilisez pas Docker, il faudra d'abord installer les bundles à l'aide de la commande: composer install