nicklaros / pos-ws-server
Websocket backend server for POS
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 10
Open Issues: 0
Type:application
Requires
- cboden/ratchet: 0.3.*
- propel/propel: 2.0.0-alpha3
- react/zmq: 0.2.*|0.3.*
This package is not auto-updated.
Last update: 2025-02-11 03:18:43 UTC
README
Websocket backend server for Next Gen POS
Demo
site = http://pos.jawait.net
user = admin
pass = admin
Requirements
Composer
Memcache
Zero MQ
- Httpd server (nginx, apache atau lainnya)
- MariaDB atau MySql
- PHP 5.4 +
Propel ORM
[Optional]
Frontend Repository
POS - Next Generation Point Of Sale Application
Setting Up Project
- Clone or fork POS-ws-server to your computer
- Use
composer update
command in POS-ws-server root directory to tell composer to gather required dependencies for you
Running the Server
Go to POS-ws-server root directory and use the following command
$ php bin/server.php
Database Scheme
Click here to view database scheme
Important Information
-
By default, POS will try to connect websocket at
ws://pos.localhost:8080
, so that means you have to set your POS development address tohttp://pos.localhost
and make sureport 8080
is open. Edit these two file if you want to change default setting-
Frontend:
POS/app/fn/Util.js
online 19
Ext.ws.Main = POS.fn.WebSocket.create('ws://pos.localhost:8080/POS/Mains');
-
Backend:
POS-ws-server/bin/server.php
online 20
$app = new App('pos.localhost', 8080);
Important to note that the address and port on each file above must be identical or the connection will fail!
-
-
Default MySql database configuration:
- host: "localhost"
- database: "pos"
- user: "root"
- password: "sqlpass"
Edit these two file if you want to change default setting
- Frontend:
POS/remote/propel-config.php
- Backend:
POS-ws-server/propel-config.php