Update Readme pour env et setup
This commit is contained in:
29
README.md
29
README.md
@@ -2,8 +2,35 @@
|
|||||||
|
|
||||||
**A great Backend to turn on my Mainframe**
|
**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
|
## Symfony Serve
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
symfony server:start --no-tls --port=3101
|
symfony server:start --no-tls --port=3101
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## .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
|
||||||
|
|||||||
Reference in New Issue
Block a user