B2B Demo Shop Installation: Mac OS or Linux, with Development Virtual Machine
  • Updated on 11 Jun 2020
  • 1 minute to read
  • Print
  • Share
  • Dark
    Light

B2B Demo Shop Installation: Mac OS or Linux, with Development Virtual Machine

  • Print
  • Share
  • Dark
    Light

To install the Demo Shop for B2B implementations on Mac OS or Linux with Development Virtual Machine, follow the steps below.

1. Install Prerequisites

To set up your environment, install the following prerequisites:

vagrant plugin install vagrant-vbguest
vagrant plugin install vagrant-hostmanager

2. Install Spryker Virtual Machine

Run the following commands in your favorite shell (e.g. Bash):

  1. Create the folder in which you want the source code to be placed:
mkdir devvm
cd devvm						
  1. Initialize the Vagrant environment:
vagrant init devvm3.0.0 https://github.com/spryker/devvm/releases/download/v3.0.0/spryker-devvm.box

For Spryker Core version 201907.0 or prior, you need to use an older version of the development machine:

vagrant init devvm2.3.1 https://github.com/spryker/devvm/releases/download/v2.3.1/spryker-devvm.box
  1. Update the Vagrantfile:

Add hostmanager plugin configuration:

mv Vagrantfile Vagrantfile.bak
awk '/^end/{print "  config.hostmanager.enabled = true\n  config.hostmanager.manage_host = true"}1' Vagrantfile.bak > Vagrantfile
  1. Build and start the virtual machine:
VM_PROJECT=b2b-demo-shop SPRYKER_REPOSITORY="https://github.com/spryker-shop/b2b-demo-shop.git" vagrant up

When the VM is built and running, your local copy of the repository will be placed in the project subfolder of the folder where the VM is located (e.g. ~/devvm/project). The subfolder will be mounted inside the VM to /data/shop/development/current.

3. Install the Shop

  1. Log into the VM:
vagrant ssh
  1. Run the installation commands:
composer install
vendor/bin/install
If you are using a devvm version lower than 2.2.0, run the ulimit -n 65535 command first.

Executing these steps will install all required dependencies, and run the installation process. Also, this will install the demo data and export it to Redis and Elasticsearch.

When the installation process is complete, Spryker Commerce OS is ready to use. It can be accessed via the following links:

  • http://de.b2b-demo-shop.local- front-end (Storefront);
  • http://zed.de.b2b-demo-shop.local- backend (the Back Office).
  • http://glue.de.b2b-demo-shop.local- REST API (Glue).

Credentials to access the administrator interface: user [email protected] and password change123.

Was this article helpful?