application pos-ws-server
Websocket backend server for POS
nicklaros/pos-ws-server
Websocket backend server for POS
- Tuesday, November 4, 2014
- by nicklaros
- Repository
- 2 Watchers
- 4 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 10 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
POS-ws-server
Websocket backend server for Next Gen POS, (*1)
Demo
site = http://pos.jawait.net, (*2)
user = admin, (*3)
pass = admin, (*4)
Requirements
Frontend Repository
POS - Next Generation Point Of Sale Application
, (*5)
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, (*6)
bash
$ php bin/server.php
, (*7)
Database Scheme
Click here to view database scheme, (*8)
-
By default, POS will try to connect websocket at ws://pos.localhost:8080
, so that means
you have to set your POS development address to http://pos.localhost
and make sure port 8080
is open. Edit these two file if you want to change default setting, (*9)
-
Frontend: POS/app/fn/Util.js
on line 19
, (*10)
Ext.ws.Main = POS.fn.WebSocket.create('ws://pos.localhost:8080/POS/Mains');
-
Backend: POS-ws-server/bin/server.php
on line 20
, (*11)
$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!, (*12)
-
Default MySql database configuration:, (*13)
- host: "localhost"
- database: "pos"
- user: "root"
- password: "sqlpass"
Edit these two file if you want to change default setting, (*14)
- Frontend:
POS/remote/propel-config.php
- Backend:
POS-ws-server/propel-config.php