The application uses Symfony with API Platform and Vue.js.
The installation can be done using docker. You just have to execute the following command
docker-compose up -d --build
To install the project, please run the following command.
docker exec -it php bash /var/www/api/installation.sh
To generate JWT Key:
docker exec -it php bash openssl genrsa -out config/jwt/private.pem -aes256 4096
docker exec -it php bash openssl rsa -pubout -in config/jwt/private.pem -out config/jwt/public.pem
In case first openssl command forces you to input password use following to get the private key decrypted:
docker exec -it php bash openssl rsa -in config/jwt/private.pem -out config/jwt/private2.pem
docker exec -it php bash mv config/jwt/private.pem config/jwt/private.pem-back
docker exec -it php bash mv config/jwt/private2.pem config/jwt/private.pem
If you want to deploy your application on a domain other than localhost, modify the following line in api/.env.local.php
//'CORS_ALLOW_ORIGIN' => '^https?://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?$',
//CHANGE THIS BY
'CORS_ALLOW_ORIGIN' => '^https?://(sub.domain.ext)(:[0-9]+)?$',
The API is available at the following address : http://localhost/api
The front application is available at the following address : http://localhost:8080