# About ChemicalWholesale
- Chemical wholesale project basic info

# Requirements

- NPM
- Composer
- PHP

## About Laravel

- Version: 10

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

- [Simple, fast routing engine](https://laravel.com/docs/routing).
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).

Laravel is accessible, powerful, and provides tools required for large, robust applications.

## PHP Requirements

- PHP >= 8.1
- BCMath PHP Extension
- Ctype PHP Extension
- Fileinfo PHP extension
- JSON PHP Extension
- Mbstring PHP Extension
- OpenSSL PHP Extension
- PDO PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- Intl Extension

# SERVER Deploy (Staging/Production)
This section guides you to setting up a staging or production server.

## First Time Deployment

- Pull repo
- Create database schema and user for app
- Copy `.env.example` to `.env` and configure for your environment
- Run `composer i`
- Run `php artisan key:generate` to set new APP_KEY (If you populated APP_KEY from another source when configuring the `.env`, you can skip this step)
- Run `php artisan migrate`
- Run `php artisan optimize`
- Configure your web server to serve the `/public` folder
- Populate CMS data (See section below)

## Continued Deployment

- Run `php artisan optimize`
- Pull latest code from repo
- Run `composer i`
- Run `php artisan migrate`
- Populate CMS Data
- Update Scorecard data (calculated externally)

## License

The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).