2017 © Pedro Peláez
 

magento2-module doofinder-magento2

Doofinder module for Magento 2

image

doofinder/doofinder-magento2

Doofinder module for Magento 2

  • Friday, July 13, 2018
  • by doofinder
  • Repository
  • 6 Watchers
  • 2 Stars
  • 425 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 17 Versions
  • 60 % Grown

The README.md

Doofinder for Magento 2

Build Status, (*1)

IMPORTANT: If you are in trouble with the module, please contact Doofinder Support from the Doofinder website., (*2)

Docker Environment

Configure ngrok

In order to be able to create an account or login to an existing Doofinder account during the module initial setup, you will have to expose your local webserver to the internet (to receive a callback)., (*3)

To do so, you can use, for example, the utility ngrok: https://dashboard.ngrok.com/get-started/setup, (*4)

Once the external URL is created, simply set the MAGENTO_BASE_URL environment variable (see Environment Variables)., (*5)

So, when the installation process finished, instead of accessing to http://localhost:9012 you will use your url, for example, http://forcibly-ethical-apple.ngrok-free.app). Notice that you'll need to specify the 9012 port when executing ngrok., (*6)

Get composer credentials

[!IMPORTANT] It is mandatory to obtain credentials for composer usage. These fields can be obtained by creating an access key into your Magento marketplace account. The public key will be COMPOSER_AUTH_USERNAME and the private key will be COMPOSER_AUTH_PASSWORD environment variables (see Environment Variables)., (*7)

Environment variables

[!TIP] You can create an .env.local file to override the environment variables defined in .env such as composer credentials or Magento installation data to fit your needs., (*8)

For example, below is a base .env.local file:, (*9)

#Magento setup configuration data
MAGENTO_BASE_URL=your-url.ngrok-free.app

#Tokens for the Magento composer repository
COMPOSER_AUTH_USERNAME=YOUR_COMPOSER_PUBLIC_KEY
COMPOSER_AUTH_PASSWORD=YOUR_COMPOSER_PRIVATE_KEY

The Makefile automatically overrides .env vars with the ones found in .env.local., (*10)

[!IMPORTANT] The Makefile internally appends --env-file .env --env-file .env.local to docker compose command for properly configuring container environment. So take it into account when interacting directly with docker compose., (*11)

Initial setup

You can set up a fresh Magento installation using the provided Makefile targets init or init-with-data. This command will: - Pulls and build an image with utility scripts for downloading and installing Magento 2 with defined PHP_VERSION and COMPOSER_VERSION environment variables. - Runs a Magento create-project command inside a bind mount into ./app. - Starts the containers - Runs a Magento installation with variables defined in the environment through .env or .env.local file. - Optionally: Loads sample data into Magento, (*12)

Finally, Magento 2 with the module installed will be running at http://MAGENTO_BASE_URL., (*13)

The admin panel will be available at http://MAGENTO_BASE_URL/admin. Admin credentials are defined in the .env, if you used the env.example would be:, (*14)

  • User: admin
  • Pass: admin123

Xdebug ready to use

If you wish to debug your new Magento installation, simply uncomment the XDEBUG_CONFIG environment variable in docker-compose.yml configure your IDE accordingly and have fun!, (*15)

Varnish was added to manage cache

By default Varnish is commented on docker-compose. So if you need to use it, you can uncomment and restart your containers. To enable Magento to use Varnish as cache manager, you can follow the official doc from Adobe: Configure the Commerce application to use Varnish., (*16)

If you uncomment Varnish container, remember to comment the port 9012:80 in the web container., (*17)

Uninstall the module

You can remove the Doofinder module using this straightforward method:, (*18)

make doofinder-uninstall

Test another versions

Change your branch to the tag that you want inside package directory, (*19)

make doofinder-upgrade

Backup and Restore Database

During development, it is sometimes useful to create a data snapshot before performing an action., (*20)

  • To create a database dump, use: sh make db-backup [prefix=_some_state]
  • To restore a previous state, run: sh make db-restore file=backup_file.sql.gz

Last notes

Please take care when you change the environment variable MAGENTO_VERSION, since you will have to change probably the PHP_VERSION and the COMPOSER_VERSION ones in order to maintain the compatibility. For example, if you wish the Magento 2.4.3 version you should have:, (*21)

PHP_VERSION=7.4
COMPOSER_VERSION=2.0.14
MAGENTO_EDITION=community
MAGENTO_VERSION=2.4.3

but if you want to test, let's say, the 2.3.1 version you should have something like this:, (*22)

PHP_VERSION=7.2
COMPOSER_VERSION=1.4.3
MAGENTO_EDITION=community
MAGENTO_VERSION=2.3.1

Troubleshooting

Redirect issues If after the setup process has finished the website doesn't load you may need to change the urls in the database. Connect to the database in localhost:3312 using the mysql user and password defined in the .env (magentobase). In the table core_config_data there are two configs for the base urls that Magento will redirect to, with paths: - web/unsecure/base_url - web/secure/base_url Make sure that those urls are the ones you'll be using to connect to your site or Magento will always redirect to them., (*23)

The Versions

13/07 2018

dev-develop

dev-develop

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

12/07 2018

dev-feature/fix-categories

dev-feature/fix-categories

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

06/06 2018

dev-master

9999999-dev

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

06/06 2018

0.1.4-beta

0.1.4.0-beta

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

30/05 2018

0.1.3-beta

0.1.3.0-beta

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

18/05 2018

0.1.2-beta

0.1.2.0-beta

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

04/04 2018

0.1.1-beta

0.1.1.0-beta

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

04/04 2018

dev-feature/test-fixes

dev-feature/test-fixes

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

23/03 2018

dev-feature/latest-changes

dev-feature/latest-changes

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

05/02 2018

0.1.0-beta6

0.1.0.0-beta6

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

05/02 2018

dev-fix-constant-access

dev-fix-constant-access

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

05/02 2018

0.1.0-beta5

0.1.0.0-beta5

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

24/01 2018

0.1.0-beta4

0.1.0.0-beta4

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

05/12 2017

0.1.0-beta3

0.1.0.0-beta3

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

20/11 2017

0.1.0-beta2

0.1.0.0-beta2

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

03/11 2017

0.1.0-beta1

0.1.0.0-beta1

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

 

27/10 2017

0.1.0-beta

0.1.0.0-beta

Doofinder module for Magento 2

  Sources   Download

OSL-3.0 AFL-3.0

The Requires