@viur/viur-shop-client
Version:
A client library for easy communication with the viur-shop backend.
54 lines (38 loc) • 1.56 kB
Markdown
<div align="center">
<h1>ViUR Shop JS Client</h1>
<a href="https://viur-framework.github.io/viur-shop-client/">
<img alt="Badge showing GitHub pages documentation build" title="PyPI" src="https://github.com/viur-framework/viur-shop-client/actions/workflows/docs.yml/badge.svg">
</a>
<a href="https://www.npmjs.com/package/@viur/viur-shop-client">
<img alt="Badge showing current NPM version" title="PyPI" src="https://img.shields.io/npm/v/@viur/viur-shop-client">
</a>
<a href="LICENSE">
<img src="https://img.shields.io/github/license/viur-framework/viur-shop-client" alt="Badge displaying the license" title="License badge">
</a>
<br>
On the way to becoming a JS Client for the <a href="https://www.viur.dev">ViUR</a> <a href="https://github.com/viur-framework/viur-shop">shop backend plugin</a>.
</div>
## Usage
```javascript
// Client use
const sc = new ViURShopClient();
sc.cart_list()
.then(payload => {
for (let root_node of payload) {
console.debug(root_node);
// [...]
}
});
```
## Installation
Download node at [nodejs.org](https://nodejs.org) and install it, if you haven't already.
```sh
npm install @viur/viur-shop-client --save
```
This package is provided in these module formats:
- CommonJS
## Documentation
You can find the documentation at [viur-framework.github.io/viur-shop-client](https://viur-framework.github.io/viur-shop-client/) (WIP).
We're following [JSDoc](https://jsdoc.app/).
## License
[MIT](LICENSE)