This app is designed to test laravel-wopi package.
And to demonstrate how to implement your own Document Manager
.
See: app/Services/DBDocumentManager.php
https://nagi1.github.io/laravel-wopi/docs
1- Clone this repo
git clone https://github.com/nagi1/wopi-host-example
2- Copy .env file you'll not need database connection 🔥
cp .env.example .env
composer install
3- fill up APP_URL
and WOPI_CLIENT_URL
values.
4- Follow Setup code step to setup local code
image using docker.
5- Use convenience command to get ready for testing
Tip: Use this command after every testing session.
php artisan prepare-for-test
You don't need to setup any databases! @calebporzio's Sushi.
Eloquent's missing "array" driver.
Optionally you can skip this step entirely if you already have your own WOPI client installed.
1- Open docker-compose.yml
and edit "domain=wopiapp\\.test"
environment to your wopi app url.
2- edit "wopiapp.test:host-gateway"
to your wopi app url
3- run docker-compose up
You can easily add code as a service to your current docker-compose file and connect it to your app/host network.
Use laravel-wopi's test suite.
Please note that the host here is on wopiapp.test if you have changed it to something else change it here too!
docker run -it --rm --add-host wopiapp.test:host-gateway \
tylerbutler/wopi-validator -- -w http://wopiapp.test/wopi/files/1 -t MyToken -l 0
Visit http://{your-app-url-here}/2
Visit http://{your-app-url-here}/3
Visit http://{your-app-url-here}/4