qzaidi / quran

node,websql and javascript API for Holy quran
qzaidi.github.io/quran/
Creative Commons Attribution 4.0 International
123 stars 36 forks source link

Thank you for this effort #1

Closed wbashir closed 11 years ago

wbashir commented 11 years ago

Asalamu Alaykum

I am building an application that may utilize this npm module, are you planning on adding any direct meta data methods. Things like getJuzBySurah(), getJuzByVerse(). If you want to connect or need help building it please let me know

qzaidi commented 11 years ago

I can surely add these methods. Can you let me know what kind of APIs you would want (signature, return etc)

wbashir commented 11 years ago

I did not realize that this npm package could not be used on the client or the wrapper methods cannot be called from the client. I am looking to find a way to expose the methods you have created to the client without exposing the DB (RestFul API ) ?

qzaidi commented 11 years ago

I have built a rest API around this package and used websql to make this work on clients. Its highly experimental, but I would share the link/API in a while.

On Mon, Jun 3, 2013 at 7:12 PM, warsamebashir notifications@github.comwrote:

I did not realize that this npm package could not be used on the client or the wrapper methods cannot be called from the client. I am looking to find a way to expose the methods you have created to the client without exposing the DB (RestFul API ) ?

— Reply to this email directly or view it on GitHubhttps://github.com/qzaidi/quran/issues/1#issuecomment-18841757 .

qzaidi commented 11 years ago

You may try the websql version at http://duas.mobi/offline

wbashir commented 11 years ago

Do you have any documentation on how to call this through a rest interface or is just a UI

qzaidi commented 10 years ago

I have added a REST API. This is different from the websql version I previously mentioned. Please see the docs here. Let me know if this helps your use case.

http://qzaidi.github.io/quran/javascript/

Currently, the only interface is to fetch a specific verse and display it in an element on page.

wbashir commented 10 years ago

Thanks again, are there any restrictions on what browsers webSQL supports ?

qzaidi commented 10 years ago

There is now a rest API as well, pls see here

http://qzaidi.github.io/quran/javascript/

websql is only supported in chrome and safari, no firefox or IE for it, but then you can use the rest API and not worry about websql.

On Sun, Jan 5, 2014 at 1:45 AM, warsamebashir notifications@github.comwrote:

Thanks again, are there any restrictions on what browsers webSQL supports ?

— Reply to this email directly or view it on GitHubhttps://github.com/qzaidi/quran/issues/1#issuecomment-31587462 .