/storefront

Marketplace storefront

Primary LanguageTypeScriptMozilla Public License 2.0MPL-2.0

APISuite Marketplace Storefront

circleci

This is APISuite's Storefront repository.

Docker

Docker images are available in our DockerHub.

Every new image is tagged with:

  • latest (dev-latest and stg-latest from develop and staging respectively)
  • semantic version from package.json (only in production)

Depending on your goals, you could use a fixed version like 1.0.0 or latest to simply get the most recent version every time you pull the image.

Set up

Requirements

  • Node.js >=v14

Install dependencies

npm i

Configuring your local environment

  1. Copy the .env.sample file to .env and adapt it to your setup

Run

To start a development server that rebuilds the project on every change, run:

npm run start

To create a build:

npm run build

Go to https://localhost.develop.apisuite.io:9001

Storefront Configuration

The Storefront uses the same type of configuration object as the core but it hads the following properties:

{
  ...
  "storefrontHeaderBackgroundImg": "URL to get the header background image from",
  "storefrontHeaderImg": "URL to get the header main image from",
  "storefrontLogo": "URL to get the Storefront from",
}

These settings can be managed via the core API, with the /settings/storefronts/{name} endpoints, where {name} matches the REACT_APP_STOREFRONT_NAME environment variable.