This repository contains the official Emporix integration for the Laioutr framework. This connector provides a comprehensive set of features to connect your Laioutr application with an Emporix backend, enabling full e-commerce functionality.
This connector handles sessions, customer data, cart management, product retrieval, reviews, and more.
This integration provides a robust bridge to Emporix, supporting the following features:
- Anonymous Sessions: Track users and persist carts before they log in.
- Get Current Cart: Retrieve the active shopping cart for the current session.
- Add Item to Cart: Seamlessly add products and variants to the user's cart.
- Category List: Fetch a flat list of all available categories.
- Category Tree by Alias: Retrieve a nested category structure by its alias (e.g., for building navigation menus).
- Get Product by Slug: Retrieve detailed information for a single product.
- Products by Category ID: Get a list of all products within a specific category using its ID.
- Products by Category Slug: Get a list of all products within a specific category using its URL slug.
- Product Variants: Fetch all available variants (e.g., size, color) for a product.
(You can replace this with your actual installation instructions)
# Using npm
npm install @laioutr/emporix-connector
# Using yarn
yarn add @laioutr/emporix-connectorTo get started, you need to configure the connector with your Emporix API credentials inside nuxt.config.ts. We recommend using environment variables:
defineNuxtConfig({
/* [...] */
modules: ["@laioutr-app/emporix"],
/* [...] */
"@laioutr-app/emporix": {
baseURL: "https://api.emporix.io",
clientId: import.meta.env.EMPORIX_CLIENT_ID,
clientSecret: import.meta.env.EMPORIX_CLIENT_SECRET,
tenant: "laioutr",
},
/* [...] */
});Contributions are welcome! Please feel free to submit a Pull Request or open an issue for bugs, feature requests, or improvements.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
This project is licensed under the [LICENSE_NAME] License. See the LICENSE file for details.