readium / readium-js-viewer

👁 ReadiumJS viewer: default web app for Readium.js library
BSD 3-Clause "New" or "Revised" License
553 stars 186 forks source link

How can I host Readium over some website? #528

Closed himanshukimni2000 closed 8 years ago

himanshukimni2000 commented 8 years ago

Hello Everyone,

First of all I would like to thank Daniel and all the contributors to develop such a nice application.

I have been trying to upload the SDK over some other domain but it is not working. Can anyone guide me how can I host this.

I am able to run this successfully from "npm run http/http2" commands but unfortunately I am not aware how this can will work on a custom domain.

Look forward to hear from you guys.

Thanks in advance for all the help which I will be getting from you and your team.

Thanks, Himanshu

danielweck commented 8 years ago

hello, did you read the "distribution" and "cloud reader deployment" sections of the README?

https://github.com/readium/readium-js-viewer/blob/develop/README.md#distribution

HTTP CORS support is working fine at Readium's Surge.sh and Firebase.io test URLs, where the cloud reader is deployed by default. http://readium.surge.sh/?epubs=http%3A%2F%2Freadium.firebaseapp.com%2Fepub_content%2Fepub_library.opds https://readium.firebaseapp.com

You can just upload the "dist" build to your own web server / domain. No special configuration required in Readium.

himanshukimni2000 commented 8 years ago

Thanks Daniel!

While running "npm run dist" command from "Git Bash" I am getting errors due to which I am unable to generate the "dist" build. I am attaching a error log for your reference. Please help.

errro.txt

danielweck commented 8 years ago

Please make sure to checkout the develop branch in all submodule repositories, which must be initialised correctly as per the READMe instructions. I am personally using GitBash on Windows 10 and I have no problems building. Let me know how it goes.

danielweck commented 8 years ago

Follow up: this was fixed in the develop branch, not yet merged / tagged / released into the master branch:

https://github.com/readium/readium-cfi-js/commit/bb13853a2f359d446d8ffb571ea90bc22087e6ae

himanshukimni2000 commented 8 years ago

Thanks again! Finally I have generated the "dist" build without any error.

Now I will carefully go through with "distribution" and "cloud reader deployment" sections and try to test this on some server.

Will get back to you in case if any issue. Thanks again Daniel!

himanshukimni2000 commented 8 years ago

Marking this close as finally I am able to integrate it to some server. Thank you so much Daniel!