An API that shows verses from the Qur'an based on emotions.
The duas.json has duas picked from either Qur'an or Hadith.
And emotionBasedVerses.json has verses picked from Qur'an only.
- Qamar has 27 verses in
emotionBasedVerses.json - And 28 duas in
duas.json
-
/versesreturns all of theversesthat are present. -
/verses/:idreturns aversebased on theid. -
/duasreturns all theduasthat are present. -
/duas/:duaidreturns aduabased on theid.
{
"id": 2,
"title": "Angry",
"sub_title": "Extinguish",
"arabic": "ٱلَّذِينَ يُنفِقُونَ فِى ٱلسَّرَّآءِ وَٱلضَّرَّآءِ وَٱلْكَـٰظِمِينَ ٱلْغَيْظَ وَٱلْعَافِينَ عَنِ ٱلنَّاسِ ۗ وَٱللَّهُ يُحِبُّ ٱلْمُحْسِنِينَ",
"urdu_translation": "جو آسودگی اور تنگی میں (اپنا مال خدا کی راہ میں) خرچ کرتےہیں اور غصے کو روکتے اور لوگوں کے قصور معاف کرتے ہیں اور خدا نیکو کاروں کو دوست رکھتا ہے",
"english_translation": "Who spend [in the cause of Allah] during ease and hardship and who restrain anger and who pardon the people - and Allah loves the doers of good",
"reference": ""
}{
"id": 1,
"title": "For Forgiveness",
"arabic": " رَبِّ إِنِّى ظَلَمْتُ نَفْسِى فَٱغْفِرْ لِى",
"urdu_translation": " اے پروردگار میں نے اپنے آپ پر ظلم کیا تو مجھے بخش دے",
"english_translation": "My Lord! I have definitely wronged my soul, so forgive me.",
"reference": ""
}PS: Some of the translation is not present for now, but will be soon added. If you're interested in making a contribution, please do so.
Please clone this repo by pasting the below code in the terminal
git clone https://github.com/realtouseef/qamar.git
# then
cd qamar
yarn
# to start the server
yarn startIf you wanna add more duas or verses, please follow this pattern:
{
"id": "",
"title": "",
"sub_tite": "",
"arabic": "",
"urdu_translation": "",
"english_translation": "",
"reference": ""
}{
"id": ,
"title": "",
"arabic": "",
"urdu_translation": "",
"english_translation": "",
"reference": ""
}