quran / quran.com-frontend

quran.com frontend
https://quran.com
MIT License
990 stars 361 forks source link

Need Access to database #282

Closed iOsMechanic closed 8 years ago

iOsMechanic commented 8 years ago

Hi Mohammed,

Need access to database,please let me know making a quran application.

ahmedre commented 8 years ago

wa3laikum alsalam, the database is not open right now - you can point to our backend using http://api.quran.com:3000. walsalam 3alaikum.

iOsMechanic commented 8 years ago

can i get some access to the quran content?

dashohoxha commented 8 years ago

An API is much better than a DB dump. Are there any docs on how to use this API? Or you are just waiting for me to document it?

By the way, I have experience with documenting API-s, see this:

ahmedre commented 8 years ago

i think besides documentation, we still have a few things to think through:

in the current world, the api is public, but it's not documented because it's not yet frozen - i imagine that we'll have to distinguish between public and private traffic at some point in the future. at the current moment, we're more or less focusing on site stability and features, and insha'Allah finalizing the public api will come later.

iOsMechanic: most of the stuff we use is from various other sources that are freely available on the internet - example the images are from qurancomplex's fonts and we have a repo for that here (quran/quran.com-images) translations are from tanzil.net (though be careful, some of their translations are not reliable and/or are not sunni), and audio is from a combination of everyayah.com and quranicaudio.com.

dashohoxha commented 8 years ago

My opinion is that documentation is not the last thing to be done, even if you have lots of things to think about. It can be as simple as this: https://raw.githubusercontent.com/B-Translator/B-Translator.github.io/master/docs/org/btranslator-api-reference.org which is a simple org-mode file, easy to write and maintain, especially with Emacs.

GitHub renders it like this: https://github.com/B-Translator/B-Translator.github.io/blob/master/docs/org/btranslator-api-reference.org which is not so bad.

With Emacs and Jekyll (and some custom CSS, of course), it can be converted automatically to something like this: http://info.btranslator.org/api/

I think it is manageable, it is not a daunting task. You can keep changing the API and updating the docs at the same time. The docs can be useful to yorself as well. I always forget the details of the API that I have developed myself, and I constantly have to go and look them up to the reference.

mmahalwy commented 8 years ago

Salam all,

I will add docs to the api repo

dashohoxha commented 8 years ago

Any format, markdown, plain text etc. would be OK.

mmahalwy commented 8 years ago

@dashohoxha sounds good.