0.1.0 • Published 6 years ago
valle-print-cli v0.1.0
valle-print-cli
Expose a local printer connection (CUPS) to a valle web application.

Architecture focused in:
- Most security
- Less memory
- Easy updates
- Easy client implementation
- CUPS integration
Start using the CLI
Install
$ [sudo] npm install -g valle-print-clior
$ [sudo] yarn add global valle-print-cliRun
$ valleCommand Line Usage
Start local API.
$ valleStart local API with custom PORT.
$ valle -p <port>Show the project version.
$ valle --versionShow all available commands.
$ valle --helpStart using the npm scripts (For PM2)
Clone the project and install the dependencies
$ git clone https://github.com/valleweb/valle-print-cli.git
$ cd valle-print-cli
$ npm installRun
$ npm startor
$ yarn startChoose a custom port
Configure your custom port creating a .env file following the .env.example file.
Routes
| Method | Endpoint | Description |
|---|---|---|
GET | / | Instructions page. |
POST | /print | API for print. |
POST: /
Request:
{
"ZPLCodeArray":[],
"CUPSUrl":"",
"userName":"",
"jobName":"",
"jobId":""
}Responses:
status: 201
{
"success": "<Boolean>"
}All automatic tasks
yarn start- Start API (production mode).yarn start-dev- Start API and watch files for reload (development mode).
Versioning
To keep better organization of releases we follow the Semantic Versioning 2.0.0 guidelines.
Contributing
Find on our issues the next steps of the project ;) Want to contribute? Follow these recommendations.
History
See Releases for detailed changelog.
License
0.1.0
6 years ago