- Server to launch print commands
- Monitors printers on printers configured in rest-on-couch database
- Sends printer status to rest-on-couch printer database
- Authentication to rest-on-couch uses an access token
The user should have the rights read, write, create and owner.
Those env variables must be defined:
- REST_ON_COUCH_URL
- REST_ON_COUCH_DATABASE
- REST_ON_COUCH_ACCESS_TOKEN
- SERVER_PORT
- PRINTER_PROTOCOL - can be http or tcp, default is
http - DISABLE_MONITOR - Do not update registered printers' status in the database, default is
false - HOST - Server host, e.g.
printers.my-domain.com, default is127.0.0.1:<PORT>- Only needed if you want to expose the swagger documentation of the service. - BASE_PATH - Base path for the server, default is
/- Only needed if you want to expose the swagger documentation of the service.
Run a dev server which restarts automatically on code changes:
npm run devThe dev server has monitoring disabled so it won't be doing DB operations. The docs can be accessed on http://127.0.0.1:7770/documentation
To publish a new version, create a github release with a new tag vX.Y.Z and the package will be automatically published to github's docker registry.
Use the "Generate changelog" feature to autofill the description of the release.
You can do this with: gh release create vX.Y.Z --generate-notes
