https://github.com/commercetools/cofe-ct-ecommerce
https://github.com/commercetools/cofe-ct-ecommerce
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/commercetools/cofe-ct-ecommerce
- Owner: commercetools
- Created: 2023-02-15T19:28:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-16T06:30:29.000Z (over 2 years ago)
- Last Synced: 2026-02-02T03:58:32.541Z (5 months ago)
- Language: TypeScript
- Size: 1.08 MB
- Stars: 1
- Watchers: 31
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Commercetools Frontend Extensions
## NOTE:
This is **NOT** an official B2C extension code and **NOT** production ready. Use it at your own risk
## Install
```
yarn add cofe-ct-ecommerce
```
## Usage
Change the `index.ts` file of your controller to look like
```ts
import * as AccountActions from 'cofe-ct-ecommerce/actionControllers/AccountController'
// import rest of the controllers
...
export const actions = {
account: AccountActions,
...
}
```
It's possible to import apis and utility classes and use them too
```ts
import { ProductApi } from 'cofe-ct-ecommerce/apis/ProductApi';
...
const productApi = new ProductApi(context, locale);
```