@fashioninsights-zalando/fcp-client
v3.15.2
Published
The fashion insights platform javascript sdk
Downloads
62
Readme
fcp-client-js
Fashion Content Platform - JavaScript SDK
Getting started
Install
with NPM
npm install --save @fashioninsights-zalando/fcp-client
with Yarn
yarn add @fashioninsights-zalando/fcp-client
Usage
Content Insights Client
import { ContentInsightsClient } from '@fashioninsights-zalando/fcp-client'
...
const client = ContentInsightsClient({ host: 'http://fcp-host/', tenantID: 'MY_FCP_TENANT_ID' })
...
Influencers Client
import { InfluencersClient } from '@fashioninsights-zalando/fcp-client'
...
const client = InfluencersClient({ host: 'http://fcp-host/', tenantID: 'MY_FCP_TENANT_ID' })
...
Fashion Store Client
import { FashionStoreSearchDataClient } from '@fashioninsights-zalando/fcp-client'
...
const client = FashionStoreSearchDataClient({ host: 'http://fcp-host/', tenantID: 'MY_FCP_TENANT_ID' })
...
Development
- Building
- Run
yarn
to get the project's dependencies - Run
yarn run build
to produce minified version.
- Development mode
- Having all the dependencies installed run
yarn run dev
. This command will generate an non-minified version and will run a watcher so you get the compilation on file change.
- Running the tests
- Run
yarn run test
Scripts
yarn run build
- produces production version under thelib
folderyarn run dev
- produces development version and runs a watcheryarn run test
- well ... it runs the tests :)