quran-web icon indicating copy to clipboard operation
quran-web copied to clipboard

How to run it on the website?

Open Serifarat opened this issue 2 years ago • 1 comments

I have a website. I know a little #php and a good amount of #html. But I don't know other languages. However, I want to publish this Quran translation program. how can i upload it from Cpanel to my own website? like the example here: https://quranweb.id

Serifarat avatar Sep 25 '21 11:09 Serifarat

  1. Download or clone quran-json project to your local computer

  2. Download or clone quran-web project to your local computer

  3. Go to quran-web project directory and run following commands (I assume using macOS or Linux or Windows with WSL)

    $ export QURAN_JSON_DIR=/path/to/quran-json/ 
    $ export QURAN_BASE_URL=https://quranweb.id
    $ php  src/generator.php
    Generating website...done.
    

Change QURAN_BASE_URL value with your own website URL. All generated files are put on build/public. Copy all files under build/public to your cPanel website.

rioastamal avatar Sep 26 '21 01:09 rioastamal