sefaz-mocked-service
v0.1.7
Published
Mocked services to simulate Sefaz services
Downloads
4
Maintainers
Readme
SEFAZ MOCKED SERVICES
It's just a simple nodeJs express based webserver to "mock" some Brazilian SEFAZ NF-e/NFC-e services.
The main idea is to return a mocked value simulating a SEFAZ return.
SEFAZ is a government department that authorizes the Brazilian invoice electronic document and other related operations.
Extra configs
You can change the behavior using the .env config file.
Supported Operations
- Autorizacao
- Rejeição (Customizável)
- Denegação
- Inutilizacao
From npm client
Install
npm install --save sefaz-mocked-service
Creating a app
- Create a file app.js
- Add inside de file:
require('sefaz-mocked-service');
Run
node app
App will show:
Sefaz mocked services is runnings at http://localhost:3002
From Source Code
Install
git clone https://github.com/jardelnovaes/sefaz-mocked.git
cd sefaz-mocked
npm install
Run
npm start