ashrafali46 / aladhan.com

The AlAdhan.com website and app

Home Page:https://aladhan.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

CircleCI GitHub All Releases

Al Adhan App

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

Technology Stack and Requirements

  • PHP 7.42
  • Composer - See composer.json for other dependencies
  • Slim Framework
  • Bootstrap 3
  • JQuery
  • Bootstrap Multiselect
  • Media Elements JS
  • 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/aladhan.com on QUAY
  • islamicnetwork/aladhan.com on Docker Hub

To get your own instance up, simply run:

docker run -it -p 8082:8080  islamicnetwork/aladhan.com:latest

You can now visit http://localhost:8082/ 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 islamicnetwork/php72:latest line to islamicnetwork/php72:dev.

  1. Clone this repository
  2. Run docker build . -t islamicnetwork/aladhan.com. This will build an image with production dependencies only.
  3. Run docker run -it -p 8081:8080 -v $(pwd)/.:/var/www islamicnetwork/aladhan.com 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.aladhan.com.
  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 22 MB per apache process / worker and is set to have a maximum of 10 Apache workers.

A single instance should be sized with a maximum of 220 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 Islamic Network Discord Server to discuss of the apps or APIs @ https://discord.gg/FwUy69M.

About

The AlAdhan.com website and app

https://aladhan.com

License:GNU General Public License v3.0


Languages

Language:JavaScript 78.2%Language:ActionScript 10.4%Language:HTML 5.4%Language:CSS 2.6%Language:AngelScript 1.3%Language:PHP 1.2%Language:C 0.6%Language:Shell 0.1%Language:Dockerfile 0.0%