daju-totvs
v1.4.5
Published
<h1 align="center"> Package Totvs Daju </h1>
Downloads
13
Maintainers
Readme
Setup application
- NodeJs 18:00 ou higher ✅;
- TypeScript ✅;
- Node-localstorage To simulate a localStorage in node by json file or any other type ✅;
Tech Stack
How it Works
Clone the repository
https://github.com/DajuLabs/daju-totvs.git
Install the dependencies
npm install
Make a copy of .env.example and rename the copy as .env
sudo cp .env.example .env
YOU NEED TO ADD .ENV IN YOUR ROOT FOLDER PROJECT. THIS PACKAGE USE VARS IN MAIN .ENV
EX: MyProject -> node_modules/daju-totvs -> src -> config.ts -> .env
daju-totvs package gonna use this root .env
Variable values. Visit this link: Env vars 🔗
#enviroment
NODE_ENV=development
#AUTHENTICATION TOTVS
ENDPOINT=replace_this
ENDPOINTTREINO=replace_this
#Credentials Authorization TOTVS
BRANCH=replace_this
AUTH_GRANT_TYPE=replace_this
REFRESH_GRANT_TYPE=replace_this
CLIENT_ID=replace_this
CLIENT_SECRET=replace_this
USERNAME=replace_this
PASSWORD=replace_this
Features
classificationProductUpdate()
Run Tests
npm run test
Run Coverage
npm run teste:coverage
That is it!