38 lines
		
	
	
		
			886 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			886 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # Zac-Mainframe-Back
 | |
| 
 | |
| **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
 | |
| ```
 | |
| 
 | |
| ## .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
 | |
| ``` |