@controlla/cli
Version:
Command line interface for rapid Controlla projects development
47 lines (33 loc) • 1.5 kB
Markdown
# cms
> Cms boilerplate
[](https://travis-ci.org/Controlla/Controlla-{{ name }})
[](https://circleci.com/gh/Controlla/Controlla-{{ name }})
[](https://ci.appveyor.com/project/IvanSotelo/controlla-boilerplate)
[](https://packagist.org/packages/controlla/controlla-boilerplate)
## Install
### Requirements
* PHP 7.1
* MySQL 5.7 with JSON support
1. `composer create-project --prefer-dist --stability=dev composer create-project controlla/controlla-boilerplate my-new-project`
2. Set database and environment variables from **.env.example**
3. Set Web write permission if needed to `bootstrap/cache` and `storage` folders.
4. Launch follow commands :
### For Local/Development
```shell
composer install
php artisan key:generate
php artisan jwt:secret
php artisan vue-i18n:generate
php artisan storage:link
php artisan migrate [--seed]
```
### For Production
```shell
# Running this on development environment will throw error so run below command only on production
composer install --no-dev --optimize-autoloader
php artisan key:generate
php artisan jwt:secret
php artisan vue-i18n:generate
php artisan storage:link
php artisan migrate --force
```