41 lines
687 B
Markdown
41 lines
687 B
Markdown
Welcome to History API for brico!
|
|
===================
|
|
|
|
## **Init project**
|
|
|
|
```
|
|
composer install
|
|
```
|
|
|
|
The default env is
|
|
```
|
|
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
|
|
```
|
|
|
|
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 |