Skip to content

Commit

Permalink
Merge pull request #40 from livechat/fix/PP-10482
Browse files Browse the repository at this point in the history
PP-10482 - CONTRIBUTING.md
  • Loading branch information
quarties authored Mar 18, 2024
2 parents 35ed58a + 8bb941d commit 77c6b37
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
### Local development

We recommend to use Mark Shust's Docker Configuration for Magento.
You can find it [here](https://github.com/markshust/docker-magento).

#### 2FA

The latest Magento version introduces obligatory 2FA for admin panel.
You can disable it by using the `DisableTwoFactorAuth` module which provides the ability to disable it by defualt for dev env.
You can find it [here](https://github.com/markshust/magento2-module-disabletwofactorauth).

#### Mounting local module

Thea easiest way to develop the module is to mount it to the `vendor` directory.
Firstly, you need to install LiveChat module via composer:
```bash
composer require livechat/module-magento-livechat:@dev
# or if you use magento-docker by Mark Shust
bin/composer require livechat/module-magento-livechat:@dev
```
The `@dev` version will accept any version of the module.

Then, you need to mount the module to the `vendor` directory.
If you use `magento-docker` by Mark Shust, you can edit the `compse.dev.yaml` file like below:
```yaml
services:
app:
volumes: &appvolumes
## Host mounts with performance penalty, only put what is necessary here
- ./src/app/code:/var/www/html/app/code:cached
# ...
- /path/to/the/magento-livechat:/var/www/html/vendor/livechat/module-magento-livechat:cached
```
From now, you can follow the official help article for LiveChat module [here](https://www.livechat.com/help/magento-integration-guide/#installation2) and continue the installation process.

0 comments on commit 77c6b37

Please sign in to comment.