# cms

> Cms boilerplate

[![Build Status](https://travis-ci.org/Controlla/Controlla-{{ name }}.svg?branch=master)](https://travis-ci.org/Controlla/Controlla-{{ name }})
[![CircleCI](https://circleci.com/gh/Controlla/Controlla-{{ name }}.svg?style=svg)](https://circleci.com/gh/Controlla/Controlla-{{ name }})
[![Build status](https://ci.appveyor.com/api/projects/status/fc5jd3a307k29phk?svg=true)](https://ci.appveyor.com/project/IvanSotelo/controlla-boilerplate)
[![License](https://poser.pugx.org/controlla/controlla-boilerplate/license?format=flat)](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

```
