Giter Club home page Giter Club logo

quran-api's Introduction

node-current GitHub repo size GitHub
GitHub issues GitHub pull requests
Website Website


This project is made for developers who want to develop Islamic applications. besides that this project also aims to be a charity for developers who develop applications with this API, especially me and the developers from the data sources that I get.

Content

Introduction

This API was created to make it easier for developers to develop Islamic applications. There are several different recitations so that developers can create dynamic audio. The data used in the development of this API is taken from several different sources, both from existing APIs and from scraping results.

This API was created using the Express Web Application Framework and several additional libraries that you can see in the package.json file.

File Structure :

Quran-API
โ”œโ”€โ”€ __test__/
โ”œโ”€โ”€ data/
โ”‚	โ”œโ”€โ”€ imam.json
โ”‚	โ””โ”€โ”€ quran.json
โ”œโ”€โ”€ server/
|	โ”œโ”€โ”€ app.js
|	โ”œโ”€โ”€ controller.js
|	โ”œโ”€โ”€ middleware.js
|	โ””โ”€โ”€ routes.js
โ”œโ”€โ”€ static/
โ”œโ”€โ”€ util/
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ package-lock.json

โฌ†๏ธ Back to Top

Installation

There are several different ways to do the installation, you can use whichever you like

  • Localhost

    # clone the repository
    > git clone https://github.com/rzkytmgr/Quran-API.git quran-api
    
    # change directory
    > cd quran-api
    
    # install all packages from package.json
    > npm install
    
    # now, you can start it
    > npm start
  • Heroku Deploy

    you can do it with just one click. But you must have a Heroku account.

    Deploy

  • Vercel Deploy

    click the deploy button below. Register your own vercel account

    Deploy with Vercel

Note : if you have problems with installation, feel free to create an issue.

โฌ†๏ธ Back to Top

Usage/Endpoint

Some of these API endpoints that you can access, start the application on your local computer or for a demo, you can go to the following link Qur'an Endpoint

  • /imam/:id

    Displays list of imam

    params :

    [Optional] id : Spesific imam id

    query :

    example :

    # display all imam
    > curl -v -H "Content-Type: application/json" \
    > http://quran-endpoint.herokuapp.com/imam
    
    # display spesific imam
    > curl -v -H "Content-Type: application/json" \
    > http://quran-endpoint.herokuapp.com/imam/2
  • /quran/:surah/:ayah?imamId=

    Display list of surah in qur'an

    params :

    [Optional] surah : spesific surah in qur'an

    [Optional] Ayah : Spesific Ayah in qur'an surah

    query :

    [Optional] imamId : Spesific imam id, get it from /imam

    example :

    # show all qur'an surah (without ayah)
    > curl -v -H "Content-Type: application/json" \
    > http://quran-endpoint.herokuapp.com/quran
    
    # show spesific qur'an surah (with ayah)
    > curl -v -H "Content-Type: application/json" \
    > http://quran-endpoint.herokuapp.com/quran/12
    
    # show spesific ayah in a surah
    > curl -v -H "Content-Type: application/json" \
    > http://quran-endpoint.herokuapp.com/quran/12/4
    
    # note :
    #	you can add the ?imamId= query wherever you want,
    # e.g :
    #	/quran?imamId=2
    #	/quran/12?imamId=10
    #	/quran/12/4?imamId=6

    Note : if you have problems with Usage/Endpoint, feel free to create an issue.

โฌ†๏ธ Back to Top

Data Resources

all the data in this api is obtained from several sources below

โฌ†๏ธ Back to Top

Thank you,

@rzkytmgr

quran-api's People

Contributors

rzkytmgr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.