Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.

commercelayer/app-imports

Commerce Layer App Imports

The Commerce Layer imports application (React) provides you with a simple GUI to handle imports.

imports list

What is Commerce Layer?

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.

Table of contents


Getting started

  1. First, install dependencies and run the development server:
pnpm install
pnpm dev
  1. Set your environment with .env.local starting from .env.local.sample.

  2. Configure your /public/config.local.js with the runtime configuration required

  3. 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>

Environments

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

Need help?

  1. Join Commerce Layer's Slack community.

  2. Create an issue in this repository.

  3. Ping us on Twitter.

License

This repository is published under the MIT license.

About

Commerce Layer application for managing imports.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 6

Languages