/bloomreach-reference-spa

brX SaaS + React = ♥️

Primary LanguageTypeScriptApache License 2.0Apache-2.0

brX SaaS + React = ♥️

Reference SPA using the Bloomreach Experience React SDK. The app is created using create-react-app.

Install and run

Copy .env.dist file to .env and specify the brX SaaS instance to fetch the page model from:

REACT_APP_BRXM_ENDPOINT=https://project.bloomreach.io/delivery/site/v1/channels/brxsaas/pages

Then, build and run the React app as follows:

npm ci
npm start

Available scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.