MOON
Server: Apache
System: Linux e2e-78-16.ssdcloudindia.net 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User: imensosw (1005)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/imensosw/www/imenso.co/dev/beautx/readme.md
# Required software on server

- mysql-server
- ngnix
- redis
- PHP ( Version 7.2 )
- composer
- git
- nodejs (latest version)
- npm (latest version)
- php extension
    -   BCMath PHP Extension
    -   Ctype PHP Extension
    -   JSON PHP Extension
    -   Mbstring PHP Extension
    -   OpenSSL PHP Extension
    -   PDO PHP Extension
    -   Tokenizer PHP Extension
    -   XML PHP Extension
- supervisor

# Laravel server configuration
 - [Server Configuration](https://laravel.com/docs/5.8#configuration)
 - [Configuring Supervisor](https://laravel.com/docs/5.8/queues#supervisor-configuration)
 - [Cron Jobs](https://laravel.com/docs/5.8/scheduling#introduction)

# Clone project
- git clone git@bitbucket.org:beautx/beautx-crm-devnack.git

# Install npm & PHP dependencies
- composer install
- npm install

# Laravel Project Configuration
 Go to Project folder and run following commands

 - cp .env.example .env
    - Update all env variables values and services forget_credentials e.g
    - Database credentials
    - SMTP credentials
    - SMS Service API keys  
    - OneSignal service API keys
    - Stripe Payment API keys
    - Stripe Plan keys
    - Socialite API keys
    - Google reCAPTCHA key


 - php artisan key:generate
 - php aritsan migrate --seed
 - php artisan passport:install

# Demo Saloon
    Username: malikahsanraza5@gmail.com
    Password: 123123123

# Migration Tool commands

Delete all database tables and create new tables. Please take backup of database if you have original data.
- `php artisan migrate:fresh --seed`

**Mandatory** - Migrate generic table e.g agents, promotions etc. only once after database migration
- `php artisan mod --generic=1`

Migrate shops with range
- `php artisan mod --startId=1 --endId=10`

Note:
- startId and endId refer to old database tabella_centriEstetici(id_centroEstetico).

- you must run only one time generic migration then you can migrate shop with range multiple times in different chunks as you need.

- if you migrate one shop so next time it can't be migrate with this tool.