Getting Started
Run the following command in your terminal to install the core gateway package:
1npm install @commercegateway/commerce-gateway1pnpm add @commercegateway/commerce-gateway1yarn add @commercegateway/commerce-gatewayThe core package is designed to be lightweight with minimal dependencies. However, depending on the adapters and backends you use, you may need additional packages:
If you plan to use Redis for session management:
1npm install ioredisIf you use the built-in Shopify backend:
1npm install @shopify/shopify-apiIf you want to use the Hono-based HTTP adapter:
1npm install hono @hono/node-serverEnsure your tsconfig.json has esModuleInterop and skipLibCheck set to true:
1{2 "compilerOptions": {3 "target": "ESNext",4 "module": "ESNext",5 "moduleResolution": "node",6 "esModuleInterop": true,7 "skipLibCheck": true,8 "strict": true9 }10}Now that you've installed the package, follow the Quickstart to build your first conversational commerce gateway.
