Giter Site home page Giter Site logo

alaneg / alquran.cloud Goto Github PK

View Code? Open in Web Editor NEW

This project forked from islamic-network/alquran.cloud

0.0 0.0 0.0 63.56 MB

Web App that powers https://alquran.cloud

License: GNU General Public License v3.0

Shell 0.13% JavaScript 17.91% PHP 23.01% CSS 1.35% HTML 57.55% Dockerfile 0.04%

alquran.cloud's Introduction

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

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.

alquran.cloud's People

Contributors

meezaan avatar dependabot[bot] 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.