This package has been deprecated

Author message:

Bundled core is deprecated, use separate bundles instead https://github.com/cxcloud/core-services

@cxcloud/core
TypeScript icon, indicating that this package has built-in type declarations

1.13.0 • Public • Published

CX Cloud Core Services

A collection of tools to work with 3rd Party and Partner services & networks. This module is meant to be used in creating commerce services.

An example of implementation can be found in CX API Accelerator.

Installation and Usage

npm install @cxcloud/core
import { Commerce, Content } from '@cxcloud/core';
import { Cart } from '@cxcloud/core/dist/commerce';

Included Bundles

  • Commerce (Powered by CommerceTools)
    • Products
    • Categories
    • Shipping
    • Carts
    • Orders
    • Customers
    • Authentication
  • Content (Powered by Contentful)
    • Entry
    • Entries
    • Space Info
  • Search (Powered by Algolia)
  • Authentication (Powered by AWS Cognito)
    • Login (Normal, MFA)
    • Registration
    • Edit Profile and Phone Number
    • Session Update
    • Password Forgot, Reset, Change
    • Get Profile

Documentation

An automatically generated documentation can be found here.

Config Schema

Using this module requires configuration. You can do so by installing node-config in your project and setting up the following keys one of your json files:

{
  "commerceTools": {
    "projectKey": "PROJECT_KEY",
    "admin": {
      "clientId": "ADMIN_CLIENT_ID",
      "clientSecret": "ADMIN_CLIENT_ID"
    },
    "user": {
      "clientId": "USER_FACING_CLIENT_ID",
      "clientSecret": "USER_FACING_CLIENT_SECRET"
    }
  },
  "contentful": {
    "sdkConfig": {
      "space": "SPACE_ID",
      "accessToken": "ACCESS_TOKEN"
    }
  },
  "algolia": {
    "applicationId": "APP_ID",
    "apiKey": "API_KEY"
  },
  "cognito": {
    "userPoolId": "USER_POOL_ID",
    "clientId": "CLIENT_ID"
  }
}

License

This project is licensed under The GPL v2 and is released merely for educational and internal purposes. The modules are not useful independently and require paid licenses from the vendors mentioned above.

Readme

Keywords

none

Package Sidebar

Install

npm i @cxcloud/core

Weekly Downloads

1

Version

1.13.0

License

GPL-2.0-only

Unpacked Size

105 kB

Total Files

71

Last publish

Collaborators

  • dipeshy
  • mpxy
  • jarl-tornroos
  • nadia-kolodyazhnaya
  • sallar