Quick Start

Last updated: Feb 3rd, 2017

Installation

Download installer

First you need to download the latest version of Easy POS Server for your Operating System and complete installation using wizard

Windows
7.13 MB
Debian
coming...
RPM
coming...
OSX
coming...

Install dependencies

To run the software you need to install JRE 8+ Which you can download from here
On windows you need to install Visual C++ 32-Bit Redistributable Which you can download from here

Configuration

Then you need to configure your printer using the printer menu from system tray. If your printer could not be found please add your printer using add printer menu.

Include JavaScript

If you are the app owner, You have to include the javascript SDK

Add following code in your body tag

<script>
    (function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "http://localhost.xiidea.net:9432/assets/easy-print-server.js";
    fjs.parentNode.insertBefore(js, fjs);
}(document, "script", "xiidea-epp-sdk"));
 </script>

Example

Hello Printer Example Print
<script>
function helloPrint() {
  if(typeof EasyPOSPrinter == 'undefined') {
        alert("Printer library not found");
        return;
  }

  EasyPOSPrinter.text("Hello Printer!");
  EasyPOSPrinter.feed(2);
  EasyPOSPrinter.cut();
  EasyPOSPrinter.print(function(r, x){
        console.log(r)
 });
}
</script>