New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bloomreach/brx-spartacus-library

Package Overview
Dependencies
Maintainers
29
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bloomreach/brx-spartacus-library

Bloomreach Spartacus Integration Library

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
29
Created
Source

Bloomreach Spartacus Library

The Bloomreach Spartacus Library enables Bloomreach Content and Discovery capabilities with Spartacus. The Bloomreach Spartacus Library interacts with the following:

  • Page Model API
  • Bloomreach Angular SDK
  • Spartacus Storefront
  • Spartacus Core Library
  • Spartacus Assets
  • Spartacus Styles

Components

  • Category highlight
  • Pathways & Recommendations
  • Spartacus banner
  • Spartacus paragraph
  • Spartacus product carousel
  • Spartacus product details
  • Spartacus product list
  • Banner
  • Spartacus breadcrumb
  • Spartacus cart coupon
  • Spartacus cart details
  • Spartacus cart quick order form
  • Spartacus cart totals
  • Spartacus checkout order summary
  • Spartacus checkout progress
  • Spartacus checkout progress mobile bottom
  • Spartacus checkout progress mobile top
  • Spartacus checkout review order
  • Spartacus delivery mode
  • Spartacus forget password
  • Spartacus login
  • Spartacus login register
  • Spartacus mini cart
  • Spartacus order confirmation items
  • Spartacus order confirmation totals
  • Spartacus order confirmation overview
  • Spartacus order confirmation thank you message
  • Spartacus payment method
  • Spartacus place order
  • Spartacus product facet navigation
  • Spartacus register
  • Spartacus search box
  • Spartacus shipping address
  • Spartacus user greet
  • Spartacus wish list
  • User my account

Getting Started

  • Clone the demo app here

Prerequisites

Your Angular development environment should include the following:

  • Angular CLI: Version 12.2.x or later.
  • Node.js: The most recent 12.14.x or later.
  • Yarn: Version 1.15 or later / npm: Version 6.x or later

Install dependencies and start

Before starting the SPA,

  • Configure the environemnt variables as here
  • Set the Spartacus OCC config in src/app/spartacus/spartacus-configuration.module.ts as here

In the root directory of your project run the following commands using NPM:

npm ci
npm start

Or with Yarn (Recommended):

yarn
yarn start 

Environment variables

The Enviroment Variables are to be configured as follows:

PropertyRequiredDescription
endpointyesThe Bloomreach Content endpoint.
smEndPointyesThe Bloomreach Discovery endpoint.
smSuggestionEndPointyesThe Bloomreach Discovery Suggestion endpoint.
accountIdyesThe Bloomreach Discovery account ID.
domainKeyyesThe Bloomreach Discovery domain key.
authKeyyesThe Bloomreach Discovery auth key.
defaultLoadingTimeyesDefault spinner loading time.

Example

export const environment = {
  production: true,
  libConfig: {
    endpoint: 'https://...../pages',
    smEndPoint: 'https://....',
    smSuggestionEndPoint: 'https://suggest.xyzz.com/api/',
    accountId : "1234",
    domainKey : "abc_123",
    authKey : "etdr235dfh"
  },
  appConfig: {
    defaultLoadingTime: 2 // in seconds
  }
};

Info

  • Know more about Bloomreach SAP Spartacus here
  • The environment variables must be configured at build time since Angular not support configuring them in runtime from hosting provider.

License

Published under Apache 2.0 license.

Keywords

FAQs

Package last updated on 30 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc