B2B or B2C Demo Shop installation- Mac OS or Linux, with Development Virtual Machine

Edit on GitHub

To install the Demo Shop for B2B or B2C 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 devv410 https://u220427-sub1:PpiiHzuF2OIUzmcH@u220427-sub1.your-storagebox.de/devvm_v4.1.0.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:
  • For a B2B Demo Shop:
VM_PROJECT=b2b-demo-shop SPRYKER_REPOSITORY="https://github.com/spryker-shop/b2b-demo-shop.git" vagrant up
  • For a B2C Demo Shop:
VM_PROJECT=b2c-demo-shop SPRYKER_REPOSITORY="https://github.com/spryker-shop/b2c-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

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:

B2B Demo Shop:

  • 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).

B2C Demo Shop:

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

Credentials to access the administrator interface: user admin@spryker.com and password change123.

Next steps: