Quranic Universal Library(QUL) - https://qul.tarteel.ai/
Welcome to the Tarteel QUL! This project is a comprehensive Content Management System designed to manage Quranic data, including translations, tafsirs, Audio, Audio segments, Arabic scripts, Mushaf layouts, and much more.
QUL is implemented using Ruby on Rails, and Active Admin for implementing the admin interface.
- Translations and Tafsirs Management: Easily add, proofread, fix issues, and export different formats.
- Audio Management: Easily add both ayah by ayah and gapless aduio, manage audio segments, and export segments data.
- Arabic Scripts: Preview different Arabic scripts, both ayah by ayah and word by word.
- Mushaf Layouts: Manage different Mushaf layouts, preview them, and export them.
- User Management: Manage users, their roles, and permissions.
- Mutashabihat ul Quran: Manage Mutashabihat ul Quran data.
- Surah info: Manage Surah info data in multiple languages.
- Content Versioning: Keep track of all changes made to the content.
- Export Data: Export data in different formats.
- Import Data: Import data from different sources.
- Quranic grammar and morphology: Manage Quranic grammar and morphology data.
This guide will help you set up the QUL project on your local machine. Follow the steps below to get started.
- Ruby: Version 3.3.3
- Rails: Version 7.0.3
- RVM or rbenv: For managing Ruby versions
- PostgreSQL: 14.3 or higher
- Redis: 7.0.0 or higher
git clone git@github.com:TarteelAI/quranic-universal-library.git
cd quranic-universal-library
rvm install 3.3.3
rvm use 3.3.3
rvm gemset create qul
rvm gemset use qul
- Ubuntu/Debian
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib libpq-dev
- MacOS
brew install postgresql
- Windows Download and install the latest version of PostgreSQL from the official website.
gem install bundler
bundle install
The QUL project requires two databases:
quran_dev
: This database holds all Quranic data, including translations, tafsirs, audio etc. It's accessed throughquran_api_db_dev
for the development environment.quran_community_tarteel
: This database manages user accounts, permissions, and user changes.
Create the quran_community_tarteel
database for managing user content.
rails db:create
For quran_dev
you can create it manually or change the database name to quran_dev
for development
group in database.yml file and run rails db:create
again.
The quran_dev
database dump is available in both SQL and binary formats. Follow the appropriate instructions below to restore the database.
7.1 Restore using SQL Dump: Download the SQL dump file and restore it using
psql quran_dev < "path to sql dump file"
7.2 Restore using binary dump: Download the Binary dump file and restore it using
pg_restore --host localhost --port 5432 --no-owner --no-privileges --no-tablespaces --no-acl --dbname quran_dev -v "path to binary dump file"
rails db:migrate
rails db:migrate
rails db:seed
bin/dev
🌟Insha`Allah! Your application should be up and running at time point! 🌟
You can now visit http://localhost:3000 in your browser to explore the app.
🔐 Head over to the admin panel at http://localhost:3000/admin
We welcome contributions to enhance the QUL project! If you'd like to contribute, please follow these steps:
10.1 Fork the Repository: Click on the "Fork" button at the top right of this page to create your own copy of the repository.
10.2 Clone Your Fork:
git clone https://github.com/your_username/qul.git
10.3. Create a new feature branch:
git checkout -b making-qul
10.4 Make Your Changes:
10.5 Push Your Changes:
git add .
git commit -m "Add a brief description of your changes"
git push origin your-feature-branch
10.6 Create a Pull Request:
May Allah reward your efforts and make them beneficial for the community! 🤲