Updating README.md
This commit is contained in:
parent
9b4ac33cb2
commit
308f2c3dbe
39
README.md
39
README.md
@ -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
|
Loading…
Reference in New Issue
Block a user