Welcome to the repository dedicated to the backend of the O'Dungeons website.
You will find here all the code related to the BackOffice, the relations with our database and the dedicated API RESTful to communicate with the front side of the project.
- Based on PHP 7.4.3
- Using framework Symphony 5.4
- PHP 7.4.3 installed
- Apache2 2.4.41 installed
- MariaDB installed
- Clone this repository
git clone git@github.com:O-clock-apollo/projet-17-o-dungeons-back.git- Install dependencies and framework bundles
composer install- Create a file
.env.local
nano .env.local- Copy/paste the following line and change the
db_user/db_password/db_name/db_versionto match your database connection
DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=mariadb-db_version"
-
Create your database:
bin/console doctrine:create:database
Create your database through MySql and add privileges to your user
Create your database through MySql then create your user and add it the privileges
-
Fill your database
bin/console doctrine:migration:migrate bin/console doctrine:fixtures:load --env=dev
-
Enjoy 😉