The Commerce Layer imports application (React) provides you with a simple GUI to handle imports.
Commerce Layer is a multi-market commerce API and order management system that lets you add global shopping capabilities to any website, mobile app, chatbot, wearable, voice, or IoT device, with ease. Compose your stack with the best-of-breed tools you already mastered and love. Make any experience shoppable, anywhere, through a blazing-fast, enterprise-grade, and secure API.
- First, install dependencies and run the development server:
pnpm install
pnpm dev
-
Set your environment with
.env.localstarting from.env.local.sample. -
Configure your
/public/config.local.jswith the runtime configuration required -
Open http://localhost:5173 with your browser to see the result. You can use the following format to open the app:
http://localhost:5173/imports?accessToken=<your-access-token>
Configure environment variables in your .env, .env.local or .env.production file as followings:
| Var name | Sample vaule | Description |
|---|---|---|
| PUBLIC_PROJECT_PATH | imports | (Optional) Defines the base root path where the app will be served.https://<slug>.commercelayer.app/<PUBLIC_PROJECT_PATH>It's used at build time to reference assets folder and at runtime as base router path. No leading or trailing slashes. |
| PUBLIC_ENABLE_MOCKS | false | (Optional) Enables mock server when set to true.Mocks are defined in ./src/mocks/handlers.ts |
-
Create an issue in this repository.
-
Ping us on Twitter.
This repository is published under the MIT license.