Updating README.md

This commit is contained in:
Christophe LATOUR 2017-07-24 16:34:09 +02:00
parent 9b4ac33cb2
commit 308f2c3dbe

View File

@ -3,39 +3,18 @@ Welcome to History API for brico!
## **Init project**
### Instalation
```
composer install
```
The default env is
### Configuration
Choose one of this configuration (prod/pprod/local)
```
APP_ENV=local
APP_DEBUG=true
APP_KEY=e!MV*C9N*B5&#FJbyf*2c8m5QOJOGeQ6&8eCL_qo
APP_TIMEZONE=UTC
DB_CONNECTION=mysql
DB_HOST=192.168.0.44
DB_PORT=3306
DB_DATABASE=brico_dev
DB_USERNAME=brico_dev
DB_PASSWORD=brico_dev42
DOMAIN_STATIC=www.bricoprive.com
CACHE_DRIVER=file
QUEUE_DRIVER=sync
composer set_prod_config
composer set_pprod_config
composer set_local_config
```
Configure your vhost
DocumentRoot shoud be /your/path/to/your/project/**public/**
Call http://your_domain.com/history
## **Test**
Example on (192.168.0.93)
Add this on your /etc/hosts to test
```
192.168.0.93 local.api.com
```
The call http://local.api.com/history