|
|
@ -1,8 +1,43 @@ |
|
|
|
# Search and Displace Core |
|
|
|
|
|
|
|
## Install |
|
|
|
### Search and Displace Ingest integration |
|
|
|
Add in .env the 'WEBHOOK_CLIENT_SECRET' value. |
|
|
|
- Create the `.env` file by copying the contents from the `.env.example` file. |
|
|
|
|
|
|
|
`cp .env.example .env` |
|
|
|
|
|
|
|
- Generate the app key by running the following command: |
|
|
|
|
|
|
|
`php artisan key:generate` |
|
|
|
|
|
|
|
- Install the 'sqlite' driver for your PHP version if it is not already installed. |
|
|
|
|
|
|
|
- For the 'QUEUE_CONNECTION' variable in `.env` you can use either `sync` or `redis` (recommended). If you choose to use `redis` |
|
|
|
then you need to make sure that it is installed on your machine. |
|
|
|
|
|
|
|
`apt update` |
|
|
|
|
|
|
|
`apt install redis-server` |
|
|
|
|
|
|
|
- Install the `Search and Displace Ingest` app, found here https://git.law/newroco/searchanddisplace-ingest |
|
|
|
- Get the URL of the `Search and Displace Ingest` app and add it to the `SD_INGEST_URL` variable in `.env` |
|
|
|
- Add in `.env` the `WEBHOOK_CLIENT_SECRET` value which needs to be the same value as the `WEBHOOK_CORE_SECRET` in |
|
|
|
the `Search and Displace Ingest` app `.env` file |
|
|
|
- Add in `.env` the `SD_DUCKLING_URL` value which by default is `http://0.0.0.0:8000/parse`. You can find |
|
|
|
details about installing Facebook Duckling in a section below. |
|
|
|
|
|
|
|
- Install composer |
|
|
|
- Install composer dependencies |
|
|
|
|
|
|
|
`composer install` |
|
|
|
|
|
|
|
- Install NodeJS and npm |
|
|
|
- Install npm dependencies |
|
|
|
|
|
|
|
`npm install` |
|
|
|
|
|
|
|
- Compile frontend assets |
|
|
|
|
|
|
|
`npm run dev` or `npm run watch` if you want to run a watcher |
|
|
|
|
|
|
|
### Facebook Duckling |
|
|
|
- `$ apt-get install libpcre3-dev` |
|
|
|