quran-web
quran-web copied to clipboard
How to run it on the website?
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
-
Download or clone quran-json project to your local computer
-
Download or clone quran-web project to your local computer
-
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.