diff --git a/README.md b/README.md index 6ba3adb..6b4dbff 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,35 @@ **A great Backend to turn on my Mainframe** +## Installation packages + +```sh +composer install --prefer-source +``` + +## Création base de données + +```sh +php bin/console doctrine:database:create +php bin/console doctrine:migrations:migrate +``` + ## Symfony Serve ```sh symfony server:start --no-tls --port=3101 -``` \ No newline at end of file +``` + +## .env + +APP_SECRET=password-for-profiler +DATABASE_URL=sqlite:///%kernel.project_dir%/var/db.sqlite + +CORS_ALLOW_ORIGIN=http(s)://frontend-ip-with-port-or-domain +FRONTEND_REDIRECT_URI=http(s)://frontend-ip-with-port-or-domain + +DISCORD_CLIENT_ID=discord-dev-app-client-id +DISCORD_CLIENT_SECRET=discord-dev-app-client-secret +DISCORD_API_BASE_URL=https://discord.com/api/v10 +DISCORD_BACKEND_REDIRECT_URI=http(s)://frontend-ip-with-port-or-domain/discord/auth/callback +DISCORD_FRONTEND_REDIRECT_URI=http(s)://frontend-ip-with-port-or-domain/discord