# Ballwatch Limited Numbers

###Buisness Logic
This is a implementation to handle limited edition products integration with OpenCart-
The OpenCart admin will store the products against limit groups with all the models(SKU's)

###Installation:

1. Run ```composer install```
2. Copy (rename) the file ```.env.example``` to ```.env```
3. Configure your DB settings in the file ```.env```
4. Run ```php artisan migrate```

###Apache Configuration

1. Configure a new vhost. Example: 

```
<VirtualHost *:80>
  ServerName api.stone.local
  ServerAlias api.stone.local
  
  # Application configuration locations and knowledge.   
  Alias /product D:/wamp64/www/ballproductservice/public/index.php
  Alias /len D:/wamp64/www/ballproductservice/public/index.php

  DocumentRoot "${INSTALL_DIR}/www"
  <Directory "${INSTALL_DIR}/www/">    
    Options FollowSymLinks
    AllowOverride None
    Require all granted
  </Directory>
</VirtualHost>
```

2. Call your service like: ```curl --request GET http://api.stone.local/product/test```