@relewise/create-relewise-learning-example
v2.0.0
Published
Create a TypeScript project for learning Relewise
Readme
Relewise learning examples
Small TypeScript examples that show how to import products, track behavior, search, and recommend with Relewise. Each example keeps the SDK request visible so you can follow it and adapt it to your own integration.
Create a learning project
You need Node.js 22 or newer and npm.
npx @relewise/create-relewise-learning-exampleChoose a new project directory when prompted. The CLI copies the template, installs dependencies, builds the examples, and optionally initializes Git. It refuses an existing directory.
Then open the generated project's QUICKSTART.md. It walks through setup, product import, search index configuration, tracking, search, recommendations, and ongoing updates. The examples call your dataset; use a dedicated learning dataset for the sample imports and events.
Work on this repository
The root project is the scaffolding CLI. template/ is the project it generates.
npm ci
npm test
cd template
npm install --ignore-scripts
cd ..
npm run test:examples
cd template
npm run build
npm run lint
npm run dev -- --helpTo exercise the local scaffold, run node bin/index.js from the repository root and choose a new destination. To work directly in template/, copy .env.local to .env and follow the quickstart.
Read AGENTS.md before changing the examples. Keep requests direct, explanations short, and sample IDs consistent across the journey. Update the quickstart alongside changes to behavior or commands.
References
The scaffold is distributed under the MIT license.
