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.
You can change the behavior using the .env config file.
- Autorizacao
- Rejeição (Customizável)
- Denegação
- Inutilizacao
npm install --save sefaz-mocked-service
- Create a file app.js
- Add inside de file:
require('sefaz-mocked-service');
node app
App will show:
Sefaz mocked services is runnings at https://localhost:3002
git clone https://github.com/jardelnovaes/sefaz-mocked.git
cd sefaz-mocked
npm install
npm start