Skip to main content

Deploying a Core SDK Application

This section provides some guidance about deploying an application built on the Core SDK. As core is exposed as an NPM package you can use it in your application by installing it as a dependency.

yarn add @spiffcommerce/core@latest

Themes​

The recommended way to deliver an experience built with the Core SDK is as a theme. Your theme is uploaded to the Spiff Commerce Hub and served by our platform within an activation, which takes care of hosting, authentication, and handing the finished bundle back to your e-commerce platform.

Because the platform wraps your theme, you don't need to host it, embed it in an iframe, or style it to coexist with your storefront.

Server Side​

The core is not bound to a browser environment. It may be used in a server side environment as well. This allows you to build a server side application that operates in a headless fashion using a technology like node.js. You might opt to minimize data required by the client this way meaning you can build a more performant application. You could stream information about the user's design to the server using websockets and pass the data to our core for transmission to Spiff Commerce. This is a more advanced approach but is a great way to build a highly performant application while also maintaining control of the version of core and the hardware it is running on.