soc2-marketplaces-sdk
v0.1.5
Published
## Project setup ``` npm install ```
Downloads
5
Readme
MarketPlaces SDK
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Project Usage
This package consists of reusable components and vuex store.
Available Components
- marketplaceDiscussion
Available States
- marketplaceDiscussionStore
- marketplaceOrganizationStore
- marketplaceUserStore
Usage of States
To use the vuex store from the package, your project should declare them as plugins in the store of your project.
For example if you want to use user state from the package,
store/index.js
import { marketplaceUserStore } from "marketplaces-sdk-soc2"
export default new Vuex.Store({
modules: {
},
plugins: [marketplaceUserStore]
})
Note: User can use these states only after logging in. This is because, Soc2 application is expecting some information at the time of making API calls which will be set only on login.