<commit_before># Nitroxy retail system
A Point of Sale (POS) system run in a browser. It handles a barcodescanner to sell stuffs.

## State of the project
The project is in active use but should be considerd an unstable alpha.

## Features
* Sell things with a barcode scanner
* Type the name of a product to not need the scanner
* Track deliveries
* Track stock
* Contains a (very) limited book keeping system

## Requirements
### Server
* php >= 5.3
* php-gd (for bar code generation and statistics display)
* php-curl (used by login service which might want to be replaced)
* php-mysql
* MySQL
* gnu-barcode (deb package barcode)

The project requires a webserver, it has been developed and tested with apache
webserver but try a different one and it might work.

### Client
This project has only been tested to work with firefox and chromium but other browsers should not be a problem.

# Setting up the system
## Installation
1. Place the content of the project in a folder
2. Create an empty mysql database for the project. If the database name is not `nitroxy_retail` `grant.sql` needs to be updated accordingly.
3. Create a db user. If the name of the user is not `nitroxy_retail`, `grant.sql` needs to be updated accordingly.
4. Copy `db_settings/nitroxy_retail.php` to `db_settings/nitroxy_retail.local.php` and edit the settings to your configuration.
5. Run (in order)
   1. `source nitroxy_retail.sql`
   2. `source data.sql`<commit_msg>Update readme with link to demo server<commit_after># Nitroxy retail system
A Point of Sale (POS) system run in a browser. It handles a barcodescanner to sell stuffs.

## State of the project
The project is in active use but should be considerd a beta.

## Features
* Sell things with a barcode scanner
* Type the name of a product to not need the scanner
* Track deliveries
* Track stock
* Contains a (very) limited book keeping system

## Demo
There is a demo of the system running here http://retail.eric.druid.se/Retail. As it's running on a raspberrypi, please go easy on it if it feels sluggish.
username: admin
password: <PASSWORD>

## Requirements
### Server
* php >= 5.3
* php-gd (for bar code generation and statistics display)
* php-curl (used by login service which might want to be replaced)
* php-mysql
* MySQL
* gnu-barcode (deb package barcode)

The project requires a webserver, it has been developed and tested with apache
webserver but try a different one and it might work.

### Client
This project has only been tested to work with firefox and chromium but other browsers should not be a problem.

# Setting up the system
## Installation
1. Place the content of the project in a folder
2. Create an empty mysql database for the project. If the database name is not `nitroxy_retail` `grant.sql` needs to be updated accordingly.
3. Create a db user. If the name of the user is not `nitroxy_retail`, `grant.sql` needs to be updated accordingly.
4. Copy `db_settings/nitroxy_retail.php` to `db_settings/nitroxy_retail.local.php` and edit the settings to your configuration.
5. Start the mysql prompt and run the following `mysql -u root -p nitroxy_retail --default-character-set=utf8`
   1. `source nitroxy_retail.sql`
   2. `source data.sql`
{'fraction_non_alphanumeric': 0.06544094733561857, 'fraction_numerical': 0.005920847616079776, 'mean_word_length': 4.152487961476726, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4353271', 'n_tokens_mistral': 946, 'n_tokens_neox': 901, 'n_words': 483}