This is a minimal example of composable frontend application based on Oryx framework.
See the documentation for installing Oryx or follow the steps below.
Download the boilerplate project and install dependencies:
git clone https://github.com/spryker/oryx-starter
cd oryx-starter
npm i
There's a pre-configured API configured in the .env
file as a fallback (ORYX_FALLBACK_SCOS_BASE_URL
)
that you can replace with a project specific base url, using the SCOS_BASE_URL
.
To run the application, you run a single command:
npm run dev
The application gets available at localhost:3000, or the next available port on your machine.
NOTE there's no SSR integration on this boilerplate yet, but will come soon.
npm run build
The recommended build tool for Oryx is Vite. However, Oryx is compatible with a wide variety of build tools, like rollup, parcel or webpack. Since Oryx uses exports in every package to split logical parts to sub-packages, the build tool you choose must support exporting entry points in package.json
.