Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.96 KB

README.md

File metadata and controls

41 lines (29 loc) · 1.96 KB

E-Com Plus Application SDK

CodeFactor npm version npm version npm version License MIT

Abstractions for apps authentication and methods to E-Com Plus Store API with NodeJS and Firestore/SQLite.

Getting started

Install pkg with firestore or sqlite tag:

npm i --save @ecomplus/application-sdk@firestore
# OR
npm i --save @ecomplus/application-sdk@sqlite

Or you may also install default version and respective database client (depending on your environment):

npm i --save @ecomplus/application-sdk --no-optional
npm i --save sqlite3@4
# OR
npm i --save firebase-admin@8

Environment variables

Variable Default Info
ECOM_AUTH_DB ./db.sqlite3 SQLite3 database pathname (if not using Firestore)
ECOM_AUTH_UPDATE enabled Set disabled to prevent update-tokens automatic service
ECOM_AUTH_DEBUG Set true to debug setup and background services
ECOM_AUTH_SETUP_TIMEOUT enabled disabled on Google (Firebase) Cloud Functions by default
ECOM_AUTH_UPDATE_INTERVAL enabled disabled on Google (Firebase) Cloud Functions by default

Documentation

No methods reference (TODO)