• Stars
    star
    315
  • Rank 132,600 (Top 3 %)
  • Language
    HTML
  • License
    GNU General Publi...
  • Created over 7 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Web App that powers https://alquran.cloud

بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ

CircleCI GitHub All Releases

Al Quran Cloud

This is the code you see deployed on https://alquran.cloud. This documentation explains how you can get setup to deploy your own instance and contribute code.

Technology Stack and Requirements

  • PHP 8.1
  • Composer - See composer.json for other dependencies
  • Slim Framework 4
  • Bootstrap 3
  • JQuery
  • Bootstrap Multiselect
  • Docker

Getting Started

Running the App

The app is fully Dockerised. You just need docker to spin it up.

A production ready Docker image of the app is published as:

  • quay.io/islamic-network/alquran.cloud on Quay
  • ghcr.io/islamic-network/alquran.cloud on Docker Hub

To get your own instance up, simply run:

docker run -it -p 8081:8080  ghcr.io/islamic-network/alquran.cloud:latest

You can now visit http://localhost:8081/ and start using it.

Build and Contribute

Please note that the Dockerfile included builds a production ready container which has opcache switched on and xdebug turned off, so you will only see your changes every 5 minutes if you are developing. To actively develop, change the FROM vesica/php72:latest line to vesica/php72:dev.

  1. Clone this repository
  2. Run docker build . -t ghcr.io/islamic-network/alquran.cloud. This will build an image with production dependencies only.
  3. Run docker run -it -p 8081:8080 -v $(pwd)/.:/var/www ghcr.io/islamic-network/alquran.cloud to spin up the built image.
  4. Run composer install to add development dependencies.
  5. Make sure you have internet connectivity so the app can connect to https://api.alquran.cloud.
  6. Open your browser and browse to http://localhost:8081/.
  7. Any changes you make will be synced to the Docker container. You just refresh the page in the browser to see them.

Scaling and Sizing

This app takes 15 MB per apache process / worker and is set to have a maximum of 20 Apache workers.

A single instance should be sized with a maximum of 512 MB RAM, after which you should scale it horizontally.

Contributing Code

You can contribute code by raising a pull request.

There's a backlog of stuff under issues for things that potentially need to be worked on, so please feel free to pick something up from there or contribute your own improvements.

You can also join the community at https://community.islamic.network/ or the Islamic Network Discord Server to discuss any of the apps or APIs @ https://discord.gg/FwUy69M.

More Repositories

1

api.alquran.cloud

The AlQuran.Cloud API - https://alquran.cloud/api
PHP
227
star
2

api.aladhan.com

The AlAdhan API
PHP
122
star
3

alquran-tools

Various tools for Parsing Quran Tajweed, Buck, etc.
PHP
112
star
4

prayer-times

An Islamic Prayer Times Library written in PHP. It performs the core calculations for the AlAdhan API @ https://aladhan.com.
PHP
63
star
5

aladhan.com

The AlAdhan.com website and app
HTML
51
star
6

alquran-api-client-php

A PHP API Client for the AlQuran.cloud REST API
PHP
10
star
7

aladhan-api-client-php

PHP Client for Prayer Times using the AlAdhan.com API
PHP
10
star
8

api.alquran.cloud-db

Dockerfile
9
star
9

waf

The Islamic Network WAF
PHP
8
star
10

prayer-times-moonsighting

A prayer times library to calculate Fajr and Isha timings per moonsighting.com
PHP
7
star
11

marifa.org

Code for Marifa.org - Metaphysical Truths and Quotes
JavaScript
6
star
12

alquran-apidotnet-client

An AlQuran DotNet API Client
C#
5
star
13

alquran-api-client-node

TypeScript
5
star
14

aladhan-api-jquery-plugin

A Jquery Plugin to get Prayer Times
JavaScript
4
star
15

islamic-calendar

A library to calculate Islamic Dates
PHP
3
star
16

openapi

OpenAPI Specifications for Islamic Network APIs
HTML
3
star
17

islamic-apps-docker

Docker Container for AlAdhan.com and AlQuran.cloud
Dockerfile
3
star
18

cdn

CDN Setup
Shell
3
star
19

qibla-direction

Calculates the angle of the Qibla from a given pair of co-ordinates.
PHP
3
star
20

islamic.network

HTML
3
star
21

quran-line-by-line

A line by line text rendition of the Qur'an for the Al Quran API
PHP
2
star
22

alquran-word

Printable Qur'an Al Kareem
Rich Text Format
1
star
23

alquran-api-golang-client

A Golang client for the AlQuran API
1
star
24

php74

Dockerfile
1
star
25

php72

Dockerfile
1
star
26

everyayah.com-audio-scraper

PHP script to scrape audio from everyayah.com
PHP
1
star
27

cdn.aladhan.com

JavaScript
1
star
28

api.aladhan.com-db

TSQL
1
star
29

sermons.islamic.network

The sermons portal and API
HTML
1
star