Giter Site home page Giter Site logo

wopi-host-example's Introduction

laravel-wopi host demo/example app

This app is designed to test laravel-wopi package. And to demonstrate how to implement your own Document Manager.

See: app/Services/DBDocumentManager.php

Docs

https://nagi1.github.io/laravel-wopi/docs

installation

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

Database

You don't need to setup any databases! @calebporzio's Sushi.

Eloquent's missing "array" driver.

Setup code

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

Advance docker setup

You can easily add code as a service to your current docker-compose file and connect it to your app/host network.

Testing for Discovery and proof validator

Use laravel-wopi's test suite.

Test using Wopi Validator

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

Test using your ๐Ÿ‘€

Word document (Docx)

Visit http://{your-app-url-here}/2

Powerpoint (pptx)

Visit http://{your-app-url-here}/3

Excel (xlsx)

Visit http://{your-app-url-here}/4

Enjoy and please share your feedback with me

[email protected]

wopi-host-example's People

Contributors

nagi1 avatar

Watchers

 avatar

Forkers

bigstar-2024

wopi-host-example's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.