<p align="center"><img width="200" src="https://thesugagroup.com//storage/logo_hor.svg"></p>


# Keppel Booking - API

Keppel Booking is infrastructure app of **Keppel Corp** that help their employees booking internal utilities such as Fitness, River safari, Zoo, The drink...

## Requirement

- Laravel 5.7
- Apache 2.4
- MariaBD 10.3.21 / MySQL 5.7.28
- LDAP extention

## Installation
```php
composer install
```

Cron Schedule
```
* * * * * php /var/.../artisan schedule:run >> /dev/null 2>&1
```

Queue
```
supervisorctl status

vi /etc/supervisord.d/name.ini

[program:kepbooking-worker]
command=php /sources/kepbooking/dev/api/artisan queue:work --tries=1
process_name=%(program_name)s_%(process_num)02d
numprocs=1
autostart=true
autorestart=true
startsecs=1
startretries=3
user=root
redirect_stderr=true
stdout_logfile=/home/logs/kepbooking-queue.log

```


## How to build prd:
After extracting zip file, should run:
```
    - echo "php artisan key:generate"
    - echo "composer install --no-interaction"
    - echo "php artisan passport:keys"
    - echo "php artisan migrate --force"
    - echo "php artisan permissions:autoload"
    - echo "php artisan storage:link"
```



## Usage

DEV [http://kepbooking-dev.w3suga.com:8081](http://kepbooking-dev.w3suga.com:8081)
STG [http://kepbooking.sugaweb.com:8081](http://kepbooking.sugaweb.com:8081)

## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

