talissonf / ecomplus-client

JS client for E-Com Plus REST APIs

Home Page:https://developers.e-com.plus/ecomplus-client/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ecomplus-client

CodeFactor npm version license mit

JS client for E-Com Plus REST APIs

Changelog

Usage

TL;DR: We have methods to run requests for almost all E-Com Plus APIs, but you're probably searching for Store API.

The @ecomplus/client package provides a list of methods, each one is a function to request a specific E-Com Plus REST API, using axios HTTP client and returning a Promise.

It's available for both Node.js and browser environments.

Dependencies

It requires and doesn't include axios and @ecomplus/utils.

It'll be automatically imported if you're developing on Node.js environment or using a bundler such as Webpack, in other case those libraries must be included manually on window scope.

Development

We're using Conventional Commits, all commit messages must follow these conventions.

For documentation, we're using jsdoc, all methods should be well documented.

Contributing

  1. Fork the repository;

  2. Create a new branch with the name of your proposal;

  3. Clone the repository:

git clone git@github.com:{user}/ecomplus-client.git
  1. Move to folder and install dependencies:
cd ecomplus-client
npm i
  1. Run dev server and use global ecomClient or edit test/demo.js for tests on http://localhost:9245/:
npm run serve
  1. Commit changes following Conventional Commits;

  2. Create a new PR describing your proposal :)

Deploy

Take a look on package.json scripts:

  • npm run doc - Update jsdoc/docdash generated documentation;
  • npm run release - Generate changelog and new version;

About

JS client for E-Com Plus REST APIs

https://developers.e-com.plus/ecomplus-client/

License:MIT License


Languages

Language:JavaScript 98.1%Language:HTML 1.9%