Project installation
To install the project you have to follow the next steps:
-
Clone the project using composer:
git clone git@bitbucket.org:p3-group/bewoplaner-chat-backend.git -
Install the project dependecies:
composer install -
Manually create the project configuration file
create a file called .env in the project root directory (like in .env.example with different credentials) -
Create symlinks in public folder for the following folders
public/messages_files -> storage/messages_files -
In the folder config/databases create a php file for each customer as per example "1234567890.config.inc.php" where 1234567890 is the CustomerID. This file should contain:
<?php
return [
'driver' => 'mysql',
'host' => 'localhost',
'port' => '3306',
'database' => 'customer_database_name',
'username' => 'customer_database_name_username',
'password' => 'customer_database_name_password',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_general_ci',
'prefix' => '',
'strict' => true,
'engine' => null
];
-
Create database structure manually
-
To run the project on your local environment
php artisan serve