## Project installation

To install the project you have to follow the next steps:

1. Clone the project using composer: 

        git clone git@bitbucket.org:p3-group/bewoplaner-chat-backend.git

2. Install the project dependecies:

        composer install

3. Manually create the project configuration file 

        create a file called .env in the project root directory (like in .env.example with different credentials)

4. Create symlinks in public folder for the following folders

        public/messages_files -> storage/messages_files

5. 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
    <?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
    ];
```
 
6. Create database structure manually

7. To run the project on your local environment
    
        php artisan serve
